aboutsummaryrefslogtreecommitdiffstats
path: root/tmux/tmux.conf
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2024-12-27 20:09:44 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2024-12-27 20:09:44 +0100
commit240106d9782a6f35d1cc0cf6ad56126d42bf5764 (patch)
treed0293c643d82a7307e48a50b8ec4b7bfd6e7b408 /tmux/tmux.conf
parentb2bdcbc530b7482126118acd3ca2efcbf0014cdb (diff)
downloaddotfiles-240106d9782a6f35d1cc0cf6ad56126d42bf5764.tar.gz
dotfiles-240106d9782a6f35d1cc0cf6ad56126d42bf5764.zip
add zsh setup
Diffstat (limited to 'tmux/tmux.conf')
-rw-r--r--tmux/tmux.conf64
1 files changed, 0 insertions, 64 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
deleted file mode 100644
index ca1ab51..0000000
--- a/tmux/tmux.conf
+++ /dev/null
@@ -1,64 +0,0 @@
-
-unbind C-b
-set-option -g prefix C-a
-bind-key C-a send-prefix
-set -g status-style 'bg=#333333 fg=#5eacd3'
-set -g mouse on
-set -g base-index 1
-set -g pane-base-index 1
-set-window-option -g pane-base-index 1
-set-option -g renumber-windows on
-set-option -g mouse on
-
-set -ga terminal-overrides ",screen-256color*:Tc"
-set-option -g default-terminal "screen-256color"
-set -s escape-time 0
-
-set-window-option -g mode-keys vi
-bind -T copy-mode-vi v send-keys -X begin-selection
-bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
-
-bind '"' split-window -c "#{pane_current_path}"
-bind % split-window -h -c "#{pane_current_path}"
-
-bind-key -r g run-shell "tmux neww lazygit"
-bind-key -r i run-shell "tmux neww ~/scripts/tmux-cht.sh"
-
-bind-key -r f run-shell "tmux neww twm"
-bind-key -r F run-shell "tmux neww twm -l"
-bind-key -r e run-shell "tmux switch -t $TWM_DEFAULT"
-bind X confirm-before kill-session
-
-# Smart pane switching with awareness of Vim splits.
-# See: https://github.com/christoomey/vim-tmux-navigator
-
-# decide whether we're in a Vim process
-is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
- | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
-
-bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
-bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
-bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
-bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
-
-tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
-
-if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
- "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
-if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
- "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
-
-bind-key -n 'C-Space' if-shell "$is_vim" 'send-keys C-Space' 'select-pane -t:.+'
-
-bind-key -T copy-mode-vi 'C-h' select-pane -L
-bind-key -T copy-mode-vi 'C-j' select-pane -D
-bind-key -T copy-mode-vi 'C-k' select-pane -U
-bind-key -T copy-mode-vi 'C-l' select-pane -R
-bind-key -T copy-mode-vi 'C-\' select-pane -l
-bind-key -T copy-mode-vi 'C-Space' select-pane -t:.+
-
-set -g @plugin 'tmux-plugins/tpm'
-set -g @plugin 'tmux-plugins/tmux-sensible'
-
-
-run '~/.tmux/plugins/tpm/tpm'