From 240106d9782a6f35d1cc0cf6ad56126d42bf5764 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Fri, 27 Dec 2024 20:09:44 +0100 Subject: add zsh setup --- tmux/.tmux.conf | 0 tmux/tmux.conf | 64 --------------------------------------------------------- 2 files changed, 64 deletions(-) create mode 100644 tmux/.tmux.conf delete mode 100644 tmux/tmux.conf (limited to 'tmux') diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..e69de29 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' -- cgit v1.2.3