Compare commits

...

2 Commits

Author SHA1 Message Date
Icedream f65628a828
Add python bin dirs on macOS to PATH. 2018-07-18 00:17:40 +02:00
Icedream 003a0bca3e
Add local zshrc loading. 2018-07-18 00:12:00 +02:00
1 changed files with 26 additions and 0 deletions

View File

@ -3,6 +3,7 @@
ZSH_DEBUG="${ZSH_DEBUG:-0}"
ZSH_ALIAS=${ZSH_ALIAS:-1}
ZSH_CUSTOM=${ZSH_CUSTOM:-1}
ZSH_DEFAULT_TERM=${ZSH_DEFAULT_TERM:-1}
ZSH_GPG_PINENTRY_FIX=${ZSH_GPG_PINENTRY_FIX:-1}
ZSH_POWERLINE="${ZSH_POWERLINE:-1}"
@ -44,6 +45,18 @@ log() {
fi
}
# Bin directories
section "python bin"
if [ -d "$HOME/Library/Python/3.7" ]; then
PATH="$HOME/Library/Python/3.7/bin:$PATH"
export PATH
fi
if [ -d "$HOME/Library/Python/2.7" ]; then
PATH="$HOME/Library/Python/2.7/bin:$PATH"
export PATH
fi
section_end
# Powerline
section "powerline"
if [ $ZSH_POWERLINE -gt 0 ]; then
@ -151,6 +164,19 @@ if [ $ZSH_PRINT_REBOOT_REQUIRED -gt 0 ]; then
fi
section_end
section "custom zshrc"
if [ $ZSH_CUSTOM -gt 0 ]; then
log "Checking if local profile code exists at ~/.local_zshrc..."
if [ -f ~/.local_zshrc ]; then
log "Exists, loading."
# shellcheck source=/dev/null
. ~/.local_zshrc
else
log "Does not exist, skipping."
fi
fi
section_end
# print env
section "Environment variables"