iterm2 ã§è¤æ°ã®ã¿ãã使ã£ã¦ããããtmuxãscreenã§è¤æ°ã®ã¦ã¤ã³ãã¦ãéãã¦ããã¨ãã©ã®ç«¯æ«ãã©ã®ãã¹ãã«ãã°ã¤ã³ãã¦ããã®ããä½ãå®è¡ä¸ãªã®ãã¨ãã£ãæ å ±ã欲ãããªãã¾ãã ã©ãããªãåã¦ã¤ã³ãã¦ã«ãã©ã¼ã«ã¹ã移ããªãã¦ããããã¨ä¾¿å©ã§ãããã ããã§ä»åã¯ãåã¦ã£ã³ãã¦åã«ããã¹ãåï¼å®è¡ä¸ã®ã³ãã³ãåãã¨ãããã©ã¼ãããã§è¡¨ç¤ºããããã¨ã«ãã¾ãã zshã«ã¯ preexec() 㨠precmd()ã¨ããçµã¿è¾¼ã¿é¢æ°ãããã¾ãã preexec() ã³ãã³ããå®è¡ç´åã«å¼ã³åºããã precmd() ããã³ããã表示ç´åã«å¼ã³åºããã ããã辺ã®çµã¿è¾¼ã¿é¢æ°ã«ã¤ãã¦ã¯ãzshmisc(1) ã«è¨è¼ããã¦ãã¾ãã preexec()ã§ã³ãã³ãåãè¨å®ããprecmd() ã§ã³ãã³ãåãæ¶å»ããã°è¯ãããã§ããã ãã¹ãå㯠hostname ã³ãã³ãã使ã£ã¦åå¾ãããã®ã
{{#tags}}- {{label}}
{{/tags}}