改变配置文件 ~/.tmux.conf后,重启tmux,发现无效。
原来tmux有个服务进程,客户进程重启时不会解析配置。
可以:
tmux kill-server
或者:
tmux source-file ~/.tmux.conf
或者在tmux中:
C-b :source-file ~/.tmux.conf
参考
https://stackoverflow.com/questions/30558755/tmux-config-files-are-not-used
https://unix.stackexchange.com/questions/66606/tmux-not-sourcing-my-tmux-conf
https://superuser.com/questions/188491/tmux-disregarding-the-configuration-file