Last active
February 18, 2024 03:01
-
-
Save iamWing/d30103529a00e01af5944f0ecbb9209f to your computer and use it in GitHub Desktop.
.zshrc from my primary Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export LC_ALL=en_US.UTF-8 | |
| export PATH="/usr/local/opt/node@16/bin:$PATH" | |
| export PATH="/usr/local/bin:$PATH" | |
| export TERM="xterm-256color" | |
| export LDFLAGS="-L/usr/local/opt/node@16/lib" | |
| export CPPFLAGS="-I/usr/local/opt/node@16/include" | |
| export JAVA_HOME="/usr/local/Cellar/openjdk@11/11.0.16/libexec/openjdk.jdk/Contents/Home" | |
| POWERLEVEL9K_MODE='nerdfont-complete' | |
| source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme | |
| alias ..='cd ..' | |
| alias ll='ls -alF' | |
| 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 | |
| status | |
| ) | |
| POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=() | |
| POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
| if [ -n "$PYTHONPATH" ]; then | |
| export PYTHONPATH='/usr/local/Cellar/pdm/2.1.1/libexec/lib/python3.10/site-packages/pdm/pep582':$PYTHONPATH | |
| else | |
| export PYTHONPATH='/usr/local/Cellar/pdm/2.1.1/libexec/lib/python3.10/site-packages/pdm/pep582' | |
| fi | |
| if type brew &>/dev/null; then | |
| FPATH=$(brew --prefix)/share/zsh-completions:$FPATH | |
| autoload -Uz compinit | |
| compinit | |
| fi | |
| jdk() { | |
| version=$1 | |
| unset JAVA_HOME; | |
| export JAVA_HOME=$(/usr/libexec/java_home -v"$version"); | |
| java -version | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment