cdã®å¼æ°ãç¸å¯¾ãã¹ã®ã¾ã¾ã³ãã³ããã¹ããªã«æ®ã£ã¦ä¾¿å©ãªä¾ãæãã¤ããªãã®ã§ã絶対ãã¹ã§ã³ãã³ããã¹ããªã«æ®ãããã«ããã å ·ä½çã«ã¯ã以ä¸ã®ã·ã§ã«é¢æ°ã.bashrcã«æ¸ãã if [[ -n "$PS1" ]]; then cd() { command cd "$@" local s=$? if [[ ($s -eq 0) && (${#FUNCNAME[*]} -eq 1) ]]; then history -s cd $(printf "%q" "$PWD") fi return $s } fi ããã¤ãã®éè¦ãªãã¤ã³ãã以ä¸ã«è¨ãã cdã®å®ç¾©ãä¸æ¸ããã¦ãããããã®ãããªå ´åä¸ã§æ®éã«cdãå¼ã¶ã¨å帰ãã¦ãã¾ãããcommandçµã¿è¾¼ã¿ã³ãã³ãã使ãã "$@"ã®ä»£ããã«"$1"ã使ããã¨ã¯ã§ããªããcdãå¼æ°ãªãã§å¼ãã ã¨ããã¼ã ãã£ã¬ã¯ããªã«ç§»åããªããªã£ã¦ãã¾ãã cdã®
{{#tags}}- {{label}}
{{/tags}}