From 9c6792cdeddb1344e36a2e9222ccd7f97b905263 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 18 Oct 2019 08:52:25 +0000 Subject: [PATCH] Import tmux.conf --- tmux.conf | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tmux.conf diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..b48d7d0 --- /dev/null +++ b/tmux.conf @@ -0,0 +1,36 @@ +set -g base-index 1 + +run-shell ~/src/tmux-resurrect/resurrect.tmux + +bind C-l send-keys 'C-l' + +bind r source ~/.tmux.conf\; display "~/.tmux.conf sourced!" + +# Smart pane switching with awareness of Vim splits. +# See: https://github.com/christoomey/vim-tmux-navigator +# is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" +# bind-key -n C-Left if-shell "$is_vim" "send-keys C-Left" "select-pane -L" +# bind-key -n C-Down if-shell "$is_vim" "send-keys C-Down" "select-pane -D" +# bind-key -n C-Up if-shell "$is_vim" "send-keys C-Up" "select-pane -U" +# bind-key -n C-Right if-shell "$is_vim" "send-keys C-Right" "select-pane -R" +# bind-key -n C-backspace if-shell "$is_vim" "send-keys C-Backspace" "select-pane -l" + +# bind-key -T copy-mode-vi C-Left select-pane -L +# bind-key -T copy-mode-vi C-Down select-pane -D +# bind-key -T copy-mode-vi C-Up select-pane -U +# bind-key -T copy-mode-vi C-Right select-pane -R +# bind-key -T copy-mode-vi C-Backspace select-pane -l + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# set -g @plugin 'christoomey/vim-tmux-navigator' + +# Other examples: +# set -g @plugin 'github_username/plugin_name' +# set -g @plugin 'git@github.com/user/plugin' +# set -g @plugin 'git@bitbucket.com/user/plugin' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run -b '~/.tmux/plugins/tpm/tpm'