tmux ä¸ã®zshãããç¹å®ãã¹ãã«sshãã¦ããéã«ãtmuxã®ã¹ãã¼ã¿ã¹ã©ã¤ã³ã«è¦åæãåºãããã£ãã ä¾ãã°æ¬çªãµã¼ãããã£ã¦ãéã¯ããã®æ¨è¦åããããã ã¨ãããã.zshrcã«ä»¥ä¸ã®è¨è¿°ã追å ãã¦ãsshå®è¡æã¨çµäºæã«tmuxã®ã¦ã¤ã³ãã¦åãã©ã¼ããããå¤æ´ãã¦ã¿ãã ç¹å®ãã¹ããã°ã¤ã³æã®ã¿è¦åãããå ´åã¯ãsshã§grepãã¦ãã辺ããé©å®æ¸ãæããã preexec() { echo "$1" | grep "ssh" if [ "$TMUX" -a "$?" -eq 0 ] then tmux set-window-option -a window-status-format "#[fg=red](Prod!)" > /dev/null tmux set-window-option -a window-status-current-format "#[fg=red](
{{#tags}}- {{label}}
{{/tags}}