tmux

TMUX using HJKL to navigate panes

一笑奈何 提交于 2019-12-02 17:26:28
Standard TMUX is set to use ctrl-b + [up, down, left, right] when navigating between panes. I would like to make it so that I can use ctrl-b (or the prefix of my choice) + [h,j,k,l]. I thought I had done this with the following vi key in my ~/.tmux.conf settings: set -g status-keys vi setw -g mode-keys vi Yet this didn't seem to change anything (at least not what I was looking for). How can I get this to work. And yes my .tmux.conf is working properly. I can provide more info if needed. Update: Here is my full .tmux.conf after trying to get it to work: set -g status-keys vi setw -g mode-keys

emacs tramp over an unreliable connection

╄→гoц情女王★ 提交于 2019-12-02 17:19:44
I want to run R on a remote box under a local Emacs (I do not want to run Emacs on the remote box). I can run R on a remote host using TRAMP : (let ((default-directory "/user@remote:~")) (R)) and everything works fine except that when the connection to remote is lost, R dies. This is no good because this means that I have to re-load all the data into R after restarting it, which takes time. Is it possible to tell TRAMP to use a persistent terminal? ( GNU Screen or tmux or Mosh or dtach ) See also emacs-devel thread tramp:sshx:(screen|tmux) . Here is how to use ESS with R running in a remote

Tmux borders are drawn with dashed lines; how can I change them to continuous lines?

China☆狼群 提交于 2019-12-02 17:04:44
I'm using Mac OS X Lion, Terminal.app and Tmux version 1.6. I get a dashed line as a window border instead of a continuous line that I get when I ssh into a Debian virtual machine on the same computer using the same terminal. How can I change the dashed line to a continuous line? I found the origin of the problem. It's the font. I was using Monaco and it displays vertical dashes in a way that the vertical pane separator is dashed. With Menlo however it's solid. I had a similar problem using iTerm on mac to log into a redhat. Suddenly the vertical lines did not show and the horizontal ones were

Clipboard failure in tmux + vim after upgrading to MacOS Sierra

∥☆過路亽.° 提交于 2019-12-02 17:00:58
Yesterday, I upgraded to MacOS Sierra and it broke my clipboard functionality in my tmux + neovim setup. Here is the behavior: I can use the standard ctrl+c, ctrl+p to copy/paste between system <-> vim I can yank/paste between two VIM instances when NOT in a tmux session I cannot yank/paste between two VIM instances when in a tmux session Whenever I use the clipboard in vim within a tmux session, I get the following vim error: clipboard: error: My .vimrc is huge, but here's what I think might be relevant: set clipboard=unnamed In my .tmux.conf (also truncated for brevity): set -g prefix ` #

Home/End keys do not work in tmux

会有一股神秘感。 提交于 2019-12-02 16:59:30
I'm currently using tmux with xterm-256color $TERM variable. When in bash under tmux, pressing home/end would insert tilde characters (~). Outside of tmux the home/end keys work fine. Using cat and tput, I could see that there was a mismatch between the generated and expected sequences: $ cat -v # pressing home, then end ^[[1~^[[4~ $ tput khome | cat -v; echo ^[OH $ tput kend | cat -v; echo ^[OF To fix this, I decided to add the following to my .bashrc: if [[ -n "$TMUX" ]]; then bind '"\e[1~":"\eOH"' bind '"\e[4~":"\eOF"' fi That fixed the problem for bash, however in other readline programs,

How to write if statement in .tmux.conf to set different options for different tmux versions?

时间秒杀一切 提交于 2019-12-02 16:14:02
I have a .tmux.conf which I use on different machines with different tmux versions installed. I want to set different mouse options, depending on the tmux version. On one machine I have version 2.0 on the other 2.1 . I do not get his part right if "[[(( $(tmux -V | cut -c 6-) < 2.1 ))]]" \ "set -g mode-mouse on;" \ "set -g mouse-resize-pane on;" \ "set -g select-pane on;" \ "set -g select-window on" "set -g mouse on" When I source the file $ tmux source-file .tmux.conf I get this message .tmux.conf:12: unknown command: set -g mouse-resize-pane on The machine where I run it has version 2.1 so

How do I start tmux with my current environment? [closed]

独自空忆成欢 提交于 2019-12-02 15:48:35
Or at least the part of it, that makes sense. More specifically I have some environment variables, that have been exported by running a script, to create an adequate environment for the task at hand. When I run tmux these variables are nowhere to be seen, neither in the global or the session environment. Of course I can run this script again but ... I'd be satisfied if I could specify the particular vars in my .tmux.conf file however: set-environment VAR $VAR Does not do what I'd expect. Thanks in advance :) Ah, I think I know why. When starting a second session of tmux, say in another

Create new tmux session from inside a tmux session

烈酒焚心 提交于 2019-12-02 15:45:35
I'm writing a shell script that creates / attaches or switches to a given session, depending on whether one is inside tmux and the session exists. I've got everything working great except for the case requiring the creation of a new tmux session from within a tmux session. When my script executes tmux new-session -s name , I get the following output: sessions should be nested with care, unset $TMUX to force I don't actually want to nest sessions, my goal is to create another separate session and switch to it from within a tmux session . Is this possible? The quickest way (assuming you use ctrl

Howto go to beginning of line in tmux after remapping prefix to CTRL+A?

依然范特西╮ 提交于 2019-12-02 15:23:00
following the suggestion in this Archlinux wiki, in the page about tmux I remapped the command key prefix to C-a , to mimic GNU screen and to have something easier on the keyboard than C-b . So my .tmux.conf became this: set -g default-terminal "screen-256color" unbind C-b set -g prefix C-a set-window-option -g mode-keys vi bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R However, while in screen it was possible to use C-a a to jump to the beginning of line, this does not work any more in tmux. As a sidenote, I'm using iTerm2 without the tmux integration.

How to copy from tmux running in putty to windows clipboard

大城市里の小女人 提交于 2019-12-02 15:13:38
ENV: I am running tmux in putty, on a windows 7 laptop. I do ssh to linux systems while working. I have to solve two glitches with tmux, before using it for all my needs. I have to copy some text to the windows notepad from vim or the tmux terminal. I have enabled mouse support for both vim and putty. I have tried "*y and "+y but both of them doesn't work. If I use putty's ability for copy then it copies the content of adjacent grids also. I have to copy some content from vim file in one pane to vim file opened in another pane. Is there any vim trick for this. I don't want to use <C-b>[ way of