Sample Header Ad - 728x90

Tmux hook after-source-file running but not displaying message

0 votes
1 answer
662 views
I want to write a hook in tmux to show a message that reports the config has been reloaded. Here is my code: #binding a button to reload this config file bind r source-file ~/.tmux.conf #set hook to notify user when config file has been reloaded set-hook -g after-source-file 'display-message "Config reloaded"' I know that the hook does run because originally I wrote "echo 'Config reloaded'" and an error came up in the status bar about it being an unknown command. Also I have included an example hook from here : set-hook -g client-attached 'display-message "hello world"' Which displays the message on client attachment no problem, so I am confused why the source-file hook is an exception
Asked by Scott Anderson (133 rep)
Jun 2, 2019, 05:51 PM
Last activity: Jun 6, 2019, 03:07 PM