chat.tmux.conf: use config_files format for reload

The recent addition of "#{source_files}" allows us to avoid hardcoding
the file name and instead ask tmux itself for the very file it used to
create the session in the first place, i.e. "-f ./chat.tmux.conf".
master
Klemens Nanni 2021-03-10 00:57:38 +01:00 committed by C. McEnroe
parent 34cfcb1f04
commit 441f561f72
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ bind-key -n -N 'toggle fullscreen' -- F11 set status
# this configuration is idempotent, i.e. reloading it only changes settings # this configuration is idempotent, i.e. reloading it only changes settings
# and never duplicates already existing windows # and never duplicates already existing windows
bind-key -N 'reload configuration' -- R { bind-key -N 'reload configuration' -- R {
source-file -- ./chat.tmux.conf source-file -F -- '#{source_files}'
display-message -- 'configuration reloaded' display-message -- 'configuration reloaded'
} }