Update tmux config, add aliases

This commit is contained in:
Rob Watson 2021-01-11 10:05:25 +01:00
parent 94cca3f006
commit c8f0d19a99
2 changed files with 12 additions and 3 deletions

View File

@ -5,16 +5,20 @@ set -g base-index 1
set-window-option -g automatic-rename off
set-window-option -g allow-rename off
set-option -g set-titles on
set -g status-style 'fg=white, bg=colour8'
set -g window-status-current-style 'fg=black, bg=green'
set -g status-right '#[fg=black, bg=colour2] #(cut -d " " -f 1-3 /proc/loadavg) #[default] #[fg=white, bg=colour238] %H:%M #[default]'
set-window-option -g mode-keys vi
set -g status-keys vi
set -g history-limit 10000
set -g escape-time 0
set -g repeat-time 1000
setw -g mouse off
setw -g mouse on
bind-key v split-window -h
bind-key s split-window -v
bind-key p new-window \; set window-status-style fg=white,bg=red
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
@ -28,13 +32,13 @@ bind-key M-l resize-pane -R
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
@ -47,5 +51,7 @@ bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
bind -n C-S-Left swap-window -t -1\; select-window -t -1
bind -n C-S-Right swap-window -t +1\; select-window -t +1
bind r source-file ~/.tmux.conf \; display "Reloading config..."

3
zshrc
View File

@ -126,6 +126,9 @@ git config --global alias.st status
git config --global alias.br branch
# Other aliases
alias sysc="systemctl"
alias hib="sudo systemctl hibernate"
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
# recursive grep with line numbers and colour, ignoring binary files:
alias gnr="grep -nR -I --color"