Skip to content

Instantly share code, notes, and snippets.

@wwiill
Last active March 8, 2025 00:24
Show Gist options
  • Save wwiill/a01be698b177aabed26b7c9fd03056d8 to your computer and use it in GitHub Desktop.
Save wwiill/a01be698b177aabed26b7c9fd03056d8 to your computer and use it in GitHub Desktop.
zshrc
echo "Loading .zshrc"
source $HOME/.aliases
## curl https://raw.githubusercontent.com/git/git/refs/heads/master/contrib/completion/git-prompt.sh > ~/.git-prompt.sh
source $HOME/.git-prompt.sh
setopt PROMPT_SUBST ; PS1='[%F{39}%~%F{green}$(__git_ps1 " (%s)")%f]>'
export VSCODE="/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export EDITOR=hx
eval "$(/opt/homebrew/bin/brew shellenv)"
## python
# git clone https://github.com/pyenv/pyenv.git ~/.pyenv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - zsh)"
## autojump
# brew install autojump
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
export PATH="$HOME/.local/bin:$VSCODE:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment