Add .tmux.conf
This commit is contained in:
parent
c945efa800
commit
3e12006fac
1 changed files with 36 additions and 0 deletions
36
.tmux.conf
Normal file
36
.tmux.conf
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
# run: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
|
|
||||||
|
# Auto install if not present
|
||||||
|
if "test ! -d ~/.tmux/plugins/tpm" \
|
||||||
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
||||||
|
|
||||||
|
|
||||||
|
# List of plugins
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-net-speed'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
|
set -g @resurrect-capture-pane-contents 'on'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Settings
|
||||||
|
set -g status-right "#{battery_status_bg} Batt: #{battery_percentage} | %H:%M"
|
||||||
|
set-option -g default-shell /bin/zsh # default shell
|
||||||
|
set -g default-terminal "screen-256color"
|
||||||
|
setw -g mode-keys vi
|
||||||
|
|
||||||
|
|
||||||
|
bind j resize-pane -D 5
|
||||||
|
bind k resize-pane -U 5
|
||||||
|
bind h resize-pane -L 10
|
||||||
|
bind l resize-pane -R 10
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
|
run -b '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue