source local tmux config files
This commit is contained in:
parent
289a21f355
commit
c72c859deb
@ -54,5 +54,14 @@ bind-key '"' split-window -v -c '#{pane_current_path}'
|
||||
bind-key % split-window -h -c '#{pane_current_path}'
|
||||
bind c new-window -c '#{pane_current_path}'
|
||||
|
||||
# Source conf
|
||||
# re-source this conf
|
||||
bind-key r source-file ~/.tmux.conf \; display-message "Sourced ~/.tmux.conf!"
|
||||
|
||||
# source local confs if they exist
|
||||
if-shell -b '[ -f "$HOME/.config/tmux.conf" ]' "source-file ~/.config/tmux.conf"
|
||||
if-shell -b '[ -f "$HOME/.local/tmux.conf" ]' "source-file ~/.local/tmux.conf"
|
||||
|
||||
# I really like tmux, but the way the handle backwards-compat in their config SUCKS!!
|
||||
# https://stackoverflow.com/questions/35016458/how-to-write-if-statement-in-tmux-conf-to-set-different-options-for-different-t
|
||||
# https://github.com/tmux/tmux/issues/1732
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user