[PATCH] chat.tmux.conf: use config_files format for reload

[PATCH] chat.tmux.conf: use config_files format for reload

From: Klemens Nanni
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".
---
 scripts/chat.tmux.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

Re: [PATCH] chat.tmux.conf: use config_files format for reload

From: June Bug
Applied