From 197e9f5a08f0deb4cf8989e267487f42aa24e4d6 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 27 Jan 2022 20:35:46 +0100 Subject: [PATCH] fix tmux config --- tmux/.config/tmux/tmux.conf | 7 ++++--- zsh/.zshrc | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 81ae153..1e16289 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -3,8 +3,8 @@ #+----------+ # Options -set-option -g base-index 1 # Start windows numbering at 1 -set-option -g default-terminal "xterm-kitty" # Setting the correct term +set-option -g base-index 1 # Start windows numbering at 3 +#set-option -g default-terminal "xterm-kitty" # Setting the correct term set-option -g history-limit 30000 # Increase scrollback buffer size set-option -g mouse on # Turn mouse-mode on set-option -g renumber-windows on # Renumber windows when a window is closed @@ -31,6 +31,7 @@ set -g status-style "bg=black" set -g status-left " #{session_name} " set -g status-left-style "bg=cyan,fg=black" +set-window-option -g pane-base-index 1 set-window-option -g window-status-separator "" set-window-option -g window-status-style "bg=terminal,fg=terminal" set-window-option -g window-status-current-style "bg=brightwhite,fg=black" @@ -102,4 +103,4 @@ bind-key -n M-Q kill-pane bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel -bind-key -n M-R source-file ~/.config/tmux/tmux.conf\; display-message "Config reloaded" +bind-key -n M-r source-file ~/.config/tmux/tmux.conf\; display-message "Config reloaded" diff --git a/zsh/.zshrc b/zsh/.zshrc index 1352a44..3c85d6c 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -90,6 +90,10 @@ zstyle ':completion:*:descriptions' format '[%d]' # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" + +#tmux config path +ZSH_TMUX_CONFIG=$HOME/.config/tmux/tmux.conf + ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache if [[ ! -d $ZSH_CACHE_DIR ]]; then mkdir $ZSH_CACHE_DIR