diff --git a/cli/tmux/tmux.conf b/cli/tmux/tmux.conf index 20b7c12..18b1754 100644 --- a/cli/tmux/tmux.conf +++ b/cli/tmux/tmux.conf @@ -18,13 +18,22 @@ setw -g mode-keys vi set -g status-keys vi set -g default-shell /usr/bin/fish # set -g prefix C-h -bind-key c new-window -c '#{pane_current_path}' -bind-key '"' split-window -c '#{pane_current_path}' -bind-key % split-window -h -c '#{pane_current_path}' +bind c new-window -c '#{pane_current_path}' +bind '"' split-window -c '#{pane_current_path}' +bind % split-window -h -c '#{pane_current_path}' bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R +bind a set-window-option automatic-rename +bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" +bind m \ + set-option -g mouse on \;\ + display 'Mouse: ON' +# set mouse off with prefix M +bind M \ + set-option -g mouse off \;\ + display 'Mouse: OFF' bind -n M-h select-pane -L bind -n M-j select-pane -D bind -n M-k select-pane -U @@ -47,16 +56,8 @@ bind -n M-n next-window bind -n M-p previous-window bind -n M-N swap-window -t +1 \; next-window bind -n M-P swap-window -t -1 \; previous-window -bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" bind -n M-[ copy-mode bind -n M-] paste-buffer -bind m \ - set-option -g mouse on \;\ - display 'Mouse: ON' -# set mouse off with prefix M -bind M \ - set-option -g mouse off \;\ - display 'Mouse: OFF' ############################ # plugins