Skip to content

Instantly share code, notes, and snippets.

@iamWing
Last active February 18, 2024 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamWing/d30103529a00e01af5944f0ecbb9209f to your computer and use it in GitHub Desktop.
Save iamWing/d30103529a00e01af5944f0ecbb9209f to your computer and use it in GitHub Desktop.
.zshrc from my primary Mac
export LC_ALL=en_US.UTF-8
export PATH="/usr/local/bin:$PATH"
export TERM="xterm-256color"
alias ..='cd ..'
alias ll='ls -alF'
POWERLEVEL9K_MODE="nerdfont-complete"
source /usr/local/share/powerlevel10k/powerlevel10k.zsh-theme
# Rye setup
source "$HOME/.rye/env"
autoload -Uz compinit
fpath=(~/.zsh/completion $fpath)
compinit -i
setopt auto_cd
# Customise the Powerlevel9k prompts
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
os_icon
dir
vcs
newline
ssh
user
virtualenv
anaconda
status
)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
if type brew &>/dev/null; then
FPATH="$(brew --prefix)/share/zsh-completions":$FPATH
autoload -Uz compinit
compinit
fi
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment