tmux

Ubuntu18.04安装tmux 2.9后续问题

此生再无相见时 提交于 2020-01-25 20:39:58
Ubuntu18.04安装tmux 2.9后续问题 安装脚本下载后看目录里的README,正常人都能安装,不多说了,源码安装自行搜索吧网上一堆。所以下我的环境 安装环境:win10 系统下VirtualBox-6.0.16,内存16G,SSD500G硬盘 虚机分配: 处理器:2 内存: 4096 tmux 作为分屏工具非常适合开发、运维分屏工作,ubuntu在现有win下搭建虚机和很好的实现自己搭建测试环境的需求,也非常适合服务器维护工具。 遇到几个问题: ubuntu18.04 出现卡死状态 tmux 在终端下自定义alt键失效 ubuntu18.04 慢 这个问题搜了好久,基本建议增加CPU或内存,如果服务器配置低还是装16.04吧,之前在笔记本上装都感觉比较快,唉~~。 tmux 快捷键问题 tmux建议使用2.9a,3.0 以后好像有些参数不对,未细研究 使用tmux 修改了快捷键设置Alt+n 切换不同的窗口,Alt+|,Alt±横竖分屏,所以Alt这个快捷键对我很重要。 # 按下Alt + 1 或Alt + 2 经常出现以上错误 (arg: 1) (arg: 2) ... ~/.tmux.conf 部分配置 unbind-key M-1 ; bind-key -n M-1 select-window -t 1 unbind-key M-2 ; bind-key -n M

Change background color of tmux pane depending on remote hostname

谁都会走 提交于 2020-01-25 10:42:08
问题 If I ssh into a remote server from tmux in a single pane, is it possible to change the background color of the pane based on the server name? Let's say all my prod servers start with prod_XYZ and a dev server starts with dev_XYZ. If I ssh into these two servers, can I color them differently based on the type of server I am on? That is, based on the server prefix? I know tmux panes now understand color. So if I can detect the ssh command is being used then I can figure the name of the server

Change background color of tmux pane depending on remote hostname

陌路散爱 提交于 2020-01-25 10:42:06
问题 If I ssh into a remote server from tmux in a single pane, is it possible to change the background color of the pane based on the server name? Let's say all my prod servers start with prod_XYZ and a dev server starts with dev_XYZ. If I ssh into these two servers, can I color them differently based on the type of server I am on? That is, based on the server prefix? I know tmux panes now understand color. So if I can detect the ssh command is being used then I can figure the name of the server

How can i copy tmux output to system clipboard? [closed]

点点圈 提交于 2020-01-15 05:55:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to copy a large section to the file in tmux. Then I enter the tmux vi mode, and copy the selected strings. However, the system clipboard is empty. How can I copy the selected strings to system clipboard? Thanks. 回答1: Assuming this is a local instance of tmux, you could add a binding like this: bind C-c

Script to start command in byobu tab

痴心易碎 提交于 2020-01-14 03:33:08
问题 I have used screen to start a server process, to witch I can later attach if needed and deatach again to carry on with other things. It worked fine but I have found byobu recently and I really love it. I want to use the same kind of scripts to run the server but instead of a screen sesson I would like to attach it to a byobu tab. I'm using byobu-tmux (because it looks better). How could I do it? My original scripts (they both do more, but these are the relevant parts): # Startup screen -a

Make Alt + h switch to the left pane in Tmux

≡放荡痞女 提交于 2020-01-13 20:18:43
问题 I'm trying to make Alt - h switch to the left pane in Tmux. This does not work: bind -n M-h select-pane -L Pressing Alt - h in cat generates the following output in my terminal: $ cat ^[h That is, it looks like Alt generates ^[ in my terminal. So, in my Tmux configuration, I have also tried this binding: bind -n ^[h select-pane -L I have made "^[" both a literal two character string (i.e., "^" + "[") as well as the special "^[" character you can access in Vim. Neither work. How to solve this

How to stream tmux pipe-pane via UDP

旧城冷巷雨未停 提交于 2020-01-13 06:33:58
问题 I'm trying to simultaneously save the output from a tmux pane to file and stream it using netcat. What works: tmux pipe-pane -o -t "server" "tee -a '/home/csgoserverp/test.txt'" echo -n "Hello World" | tee -a '/home/me/text.txt' | nc -4u -w1 0.0.0.0 9999 What does not work: tmux pipe-pane -o -t "server" "nc -4u -w1 0.0.0.0 9999" tmux pipe-pane -o -t "server" "tee -a '/home/me/test.txt' | nc -4u -w1 0.0.0.0 9999" Any help would be appreciated. 回答1: I read somewhere that ncat is better than

How does Vim guess background color on xterm?

﹥>﹥吖頭↗ 提交于 2020-01-13 05:44:52
问题 Vim has the ability to correctly guess the background color of an Xterm in order to set its internal option bg to either dark or white according to the terminal's one. Vim is able to do that correctly only when TERM is set to either xterm {, -color , -256color } or linux but no others like tmux or screen . How does Vim to guess that? I've found that most people forces setting up the background option to either dark or light in their .vimrc file; but I'd like a way to guess the same way Vim

tmux: hangs and do not load, and do not respond to any option command

我的未来我决定 提交于 2020-01-11 16:38:08
问题 I have installed tmux from source on my localspace in Fedora. It was working nicely so far. But suddenly can not run it anymore, when run tmux, it just halts. Tried different command options like ls-sessions, none works. Killed all the processes of my user, deleted all the files of tmux and libevnet , and reinstalled them again from scratch. Still same, and tmux command in terminal just freezes without any actual error. 回答1: I had faced this problem for a long time and after a bit of

tmux: hangs and do not load, and do not respond to any option command

帅比萌擦擦* 提交于 2020-01-11 16:38:07
问题 I have installed tmux from source on my localspace in Fedora. It was working nicely so far. But suddenly can not run it anymore, when run tmux, it just halts. Tried different command options like ls-sessions, none works. Killed all the processes of my user, deleted all the files of tmux and libevnet , and reinstalled them again from scratch. Still same, and tmux command in terminal just freezes without any actual error. 回答1: I had faced this problem for a long time and after a bit of