zshã®è¨å®ãããæãç¡ãã¦bashã¨zshãä½µç¨ãã¦ããã®ã ããã©ããã¼ã¡ã¼ã¡zshã«ã·ããã§ãã¦ããã
ä¸çªå°ã£ã¦ããã®ããè£å®åè£ã表示ãã¦ãããã ãã§è¯ãã®ã«åæã«å ¥åã¾ã§ããã¡ããæ©è½ãã·ã¼ã±ã³ã·ã£ã«ãªé¸æã¯( ï¾Ðï¾)ï¾ï¾ï¾ï¾ï½¸ï½¾ï½°ãããã¯
unsetopt AUTO_MENU
ã§è§£æ±ºã
次ã«ããã³ããã常ã«èªåã®ãããã£ã¬ã¯ããªã¯è¡¨ç¤ºãã¦ããã¦æ¬²ããã®ã§ãããå ¥åéå§ä½ç½®ããããã®ãå«ãªã®ã§åç´ã«ããã³ããã«ãã£ã¬ã¯ããªè¡¨ç¤ºã追å ããã®ã¯ãã¡ã§ãbashã§ã¯2段ããã³ããã«ãã¦ãã¾ãããzshã§ã¯å³å´ã«è¡¨ç¤ºãããããã³ãããããã®ã§ããã鬱é¶ããã®ã§zshã§ã2段ããã³ããã«ãã¾ããã
PS1=$'%{\e[0;32m%}%(2L.[%L].)%n%u@%m:\%{\e[0m%}%{\e[0;33m%}%~%{\e[0m%}\n%# '
ãã¾ãã§
- è²ä»ã
- ã·ã§ã«ã¬ãã«ã2以ä¸ã®å ´åã¯ãå é ã«[2]ã®ããã«ã·ã§ã«ã¬ãã«ã表示
ã£ã¦ã®ããã£ã¦ãã¾ããã¡ãªã¿ã«ã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ãæå¹ã«ããã«ã¯ã$'...'ãã¨ããæååå½¢å¼ã使ãã®ã ããã§ãã
ï¼~/rootã®èª¬æã¯å¥ã¨ã³ããªã§æ¸ãã¾ãï¼
ãã¨ã¯ã
setopt AUTO_PUSHD # ãã¾ã unsetopt AUTO_CD # ãããªããã£ããã¯ããã setopt PUSHD_IGNORE_DUPS # åã奴ã¯ç¡è¦ãã¦ãã
ã§èªåpushdãæå¹ã«ãã¾ããã
æå¾ã«/etc/passwdã/bin/bashãã/bin/zshã«å¤æ´ãã¾ããã
ã¾ããaliasãç°å¢å¤æ°ã¯bashã¨åãæ¸å¼ã§æ¸ããã®ã§ããããã~/.aliasesã~/.envã¨ãã¦ç¬ç«ããã¾ãããætcshã¨bashãä½µç¨ãã¦ããæãæãåºãããã