feat(zsh): add homebrew shellenv to zsh
This commit is contained in:
@@ -19,7 +19,13 @@ Make sure you have installed all of the following prerequisites on your developm
|
|||||||
- git config
|
- git config
|
||||||
- zsh config
|
- zsh config
|
||||||
- [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh)
|
- [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh)
|
||||||
|
```
|
||||||
|
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
|
```
|
||||||
- [powerlevel10k theme](https://github.com/romkatv/powerlevel10k)
|
- [powerlevel10k theme](https://github.com/romkatv/powerlevel10k)
|
||||||
|
```
|
||||||
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
||||||
|
```
|
||||||
- tmux config
|
- tmux config
|
||||||
- MacOSX config
|
- MacOSX config
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
# 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
|
# GHQ and FZF
|
||||||
alias ghqcd="cd \$(ghq list --full-path | 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
|
# OS SPECIFIC SETTINGS
|
||||||
case "$(uname)" in
|
case "$(uname)" in
|
||||||
Darwin)
|
Darwin)
|
||||||
@@ -121,5 +128,3 @@ Darwin)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
||||||
|
|||||||
Reference in New Issue
Block a user