feat(zsh): add homebrew shellenv to zsh

This commit is contained in:
2022-05-10 18:38:39 +08:00
parent 565dfe3b33
commit a389a92a78
2 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
# Setting homebrew shellenv
[[ ("$(uname)" = "Darwin") && -d "/opt/homebrew" ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
@@ -114,6 +118,9 @@ source $ZSH/oh-my-zsh.sh
# GHQ and FZF
alias ghqcd="cd \$(ghq list --full-path | fzf)"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# OS SPECIFIC SETTINGS
case "$(uname)" in
Darwin)
@@ -121,5 +128,3 @@ Darwin)
;;
esac
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh