diff options
author | listout <listout@protonmail.com> | 2021-11-09 18:37:50 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2021-11-09 18:37:50 +0530 |
commit | 4f31bdbd092e01cde9bb738d6b6e488cb097322a (patch) | |
tree | 71e6e88512baf27005c4974b19405ec8ff776ed7 /.tmux.conf | |
parent | c369cc2c04b8d91f782887df4284ecaa4763e642 (diff) |
Changed tmux config
- Using better commenting
- Using vim like key binding for copy and paste
Diffstat (limited to '.tmux.conf')
-rw-r--r-- | .tmux.conf | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -1,14 +1,27 @@ +# unbind default prefix unbind C-b + +# set prefix to ctrl-a set -g prefix C-a + +# dont mess up with other ctrl-a options by pressing ctrl-a twice bind C-a send-prefix +# use mouse to scroll set -g mouse on # set clipboard on set-option -g set-clipboard external # vim mode and copy keybindings +# enable vi mode setw -g mode-keys vi # list keybindings: tmux list-keys -T copy-mode-vi + +# remap copy paste keys +unbind [ +bind y copy-mode +unbind p +bind p paste-buffer bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' bind-key -T copy-mode-vi 'r' send-keys -X rectangle-toggle @@ -18,6 +31,10 @@ bind-key -T copy-mode-vi MouseDown3Pane select-pane # right mouse button (to hi bind-key -T copy-mode-vi MouseDrag3Pane select-pane \; send-keys -X begin-selection unbind-key -T copy-mode-vi MouseDragEnd3Pane +# set zsh as default shell +set -g default-command /bin/zsh +set -g default-shell /bin/zsh + set -sg escape-time 1 set -g base-index 1 setw -g pane-base-index 1 @@ -32,22 +49,23 @@ bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." set -g history-limit 10000 +# vim style spliting bind-key v split-window -h bind-key s split-window -v +# pane movement similar to vim bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R +# resize pane bind -r H resize-pane -L 5 bind -r J resize-pane -D 5 bind -r K resize-pane -U 5 bind -r L resize-pane -R 5 # styling -set -g status-style "fg=#000000 bg=#ffffff" +set -g status-style "fg=#f0ecfe bg=#1c1c1c" set -g pane-active-border-style "fg=#ffffff" set -g pane-border-style "fg=#ffffff" - -# source-file ~/.tmux/moonfly.tmux.conf |