Created
October 6, 2019 16:43
-
-
Save fbchow/2fe4ac30f8137029120639d765b15d9c to your computer and use it in GitHub Desktop.
.zshrc file config
This file contains 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
function powerline_precmd() { | |
PS1="$(powerline-shell --shell zsh $?)" | |
} | |
function install_powerline_precmd() { | |
for s in "${precmd_functions[@]}"; do | |
if [ "$s" = "powerline_precmd" ]; then | |
return | |
fi | |
done | |
precmd_functions+=(powerline_precmd) | |
} | |
if [ "$TERM" != "linux" ]; then | |
install_powerline_precmd | |
fi | |
# added by Anaconda3 2018.12 installer | |
# >>> conda init >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
\eval "$__conda_setup" | |
else | |
if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then | |
. "/anaconda3/etc/profile.d/conda.sh" | |
CONDA_CHANGEPS1=false conda activate base | |
else | |
\export PATH="/anaconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda init <<< | |
POWERLEVEL9K_MODE='nerdfont-complete' | |
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
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