mac osx 㧠bashã®è£å®æ©è½ãæå¹ã«ãã話(homebrewçµç±)
ã¯ãããã¤ã«ã¬ã¼æ§ã§ããããã®ã§ãã
ä½æ¥ç°å¢ãMacã«ãªã£ã¦ããã®ã§ãã®è¾ºå¿ããªãããã«æ¸ããªãã
ã¿ããªzshã zshã ã¨ããããã§ãããã¾ãè²ã
è¦ããã®ããã©ãããã¦ï½
zshã£ã¦ã©ãã ã便å©ãªã®ã説æãã¦ããã人ãåéãã¦ãã¾ãã
ã¨ããããbashã§ãè£å®æ©è½ããã®ã§ãããã§ãã£ã¦ã¿ã¾ããã
homebrewã¤ã³ã¹ãã¼ã«
homebrewã¯æ§ã
ãªããã±ã¼ã¸ãç°¡åã«ã¤ã³ã¹ãã¼ã«ã§ãããã¤ã§ãã
ä»ãªãmacportsã¯ãã¼ã¯ã¹ã¯ã¹ãããã®ã§homebrewã®ããã¯ã¦ã§ã¼ãã«ä¹ãã¾ãã
mkdir ~/homebrew curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C ~/homebrew
çµããã
bash è£å®ã®ã¤ã³ã¹ãã¼ã«
homebrewã§bash_completionã¨ãã¦æä¾ããã¦ããã®ã§ããããã¤ã³ã¹ãã¼ã«
ã¾ããhomebrewã®å®è¡ãã¡ã¤ã«ã®ãããã£ã¬ã¯ããªã«ãã¹ãéãã¾ãã
export PATH=$PATH:~/homebrew/bin
次ã«ãbash_completionããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«
brew install bash_completion
bashã®è¨å®
æå¾ã«ã.bashrcã¨ãã.bash_profileãªã©ã®bashã®è¨å®ãã¡ã¤ã«ã«è£å®æ©è½ã使ãããã«è¨å®ãã¾ãã
cat <<'EOF' >> ~/.bashrc # env export PATH=$PATH:~/bin:~/homebrew/bin export EDITOR=vim # tmux alias tmux='tmuxx' alias ls="ls -Fal" # bash-completion if [ -f ~/homebrew/etc/bash_completion ]; then . ~/homebrew/etc/bash_completion fi EOF cp ~/.bashrc ~/.bash_profile
ã¯ãã以ä¸ï¼
ããã ãã§ããsshæã®hostsã®è¨å®ã¨ãã¤ãã¤ããããªããªãã®ã§æ¥½ã§ããã