Mac OS X zsh 설정
# ~/.zshrc
source ~/.zshrc.local
Shell
복사
# ~/.zshrc.local
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
eval "$(pyenv init -)";
eval "$(pyenv virtualenv-init -)"
prompt_context() {
emojis=("⚡️" "🔥" "🇰 " "👑" "😎" "🐸" "🐵" "🦄" "🌈" "🍻" "🚀" "💡" "🎉" "🔑" "🚦" "🌙")
RAND_EMOJI_N=$(( $RANDOM % ${#emojis[@]} + 1))
prompt_segment black default "claude ${emojis[$RAND_EMOJI_N]} "
}
source <(kubectl completion zsh)
Shell
복사