ã³ãã³ãå®è¡ä¸ã®å ´åã¯ã³ãã³ãåã表示ãï¼ãã以å¤ã¯ã«ã¬ã³ããã£ã¬ã¯ããªåã表示ãããã£ãã®ã§ãããã調ã¹ã¦ .zshrc ãããã£ã¦ã¿ã¾ããã .zshrc if [ "$TERM" = "screen" ]; then local -a shorthost echo $TERMCAP | grep -q -i screen if [ $? -eq 0 ]; then shorthost="" else shorthost="${HOST%%.*}:" fi echo -ne "\ek$shorthost\e\\" preexec() { echo -ne "\ek${shorthost}($1)\e\\" echo -ne "\e_`dirs`\e\\" } precmd() { echo -ne "\ek${shorthost}$(basename $(pwd))\e\\" } fi
{{#tags}}- {{label}}
{{/tags}}