Update tmux config, add aliases
This commit is contained in:
parent
94cca3f006
commit
c8f0d19a99
|
@ -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
|
||||
|
@ -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
3
zshrc
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue