Skip to content

Commit

Permalink
tmux: reload: unset/reset global options that are appended to
Browse files Browse the repository at this point in the history
This reverts commit 468b52d.
  • Loading branch information
blueyed committed Jul 27, 2015
1 parent c2a5a35 commit 855be26
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tmux.common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ set-window-option -g xterm-keys on

# Setup defaults from xterm* also for urxvt (minus Ms for set-selection).
# Asked about this on the mailing list (rejected): https://sourceforge.net/p/tmux/mailman/message/33169870/
# TODO: should not append when reloading?!
set -ga terminal-overrides ",rxvt*:XT:Cs=\\E]12;%p1%s\\007:Cr=\\E]112\\007:Ss=\\E[%p1%d q:Se=\\E[2 q"

# Mouse support.
Expand Down Expand Up @@ -60,8 +59,11 @@ bind a send-prefix
# bind C-A send-prefix \; send-prefix
# bind -n C-^ send-keys C-^

# easy reloading of config
bind R source-file ~/.tmux.conf \; display "Reloaded!"
# Reload config: unset/reset options that are appended to.
# Unsetting global config vars is fixed in Git for tmux 2.1.
bind R set -gu update-environment \; \
set -gu terminal-overrides \; \
source-file ~/.tmux.conf \; display "Reloaded!"

bind C-a last-window
bind -r Tab select-pane -t :.+
Expand Down

0 comments on commit 855be26

Please sign in to comment.