Skip to content
Permalink
763e6f3f2b
Go to file
 
 
Cannot retrieve contributors at this time
52 lines (42 sloc) 1003 Bytes
# Only allow loading once
# to reload run 'unset ZSH_LOADED'
# if [[ "$ZSH_LOADED" == true ]];then
# echo "Settings already loaded"
# return
# fi
# export ZSH_LOADED=true
# Path to dotfiles repo
export DOTFILES="$(dirname $(readlink $HOME/.zshrc))"
# Loads a local settings file for sekrets
if [[ -e $HOME/.localrc ]]
then
source $HOME/.localrc
fi
if [[ $OSTYPE == darwin* ]];then
export OSX=true
fi
# Set the path to include:
# - /usr/local/bin for Homebrew
# - /usr/local/sbin
# - /usr/bin for system executable
# - /bin
# - /usr/sbin
# - /sbin
# - $HOME/.bin for local tools
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/.bin"
# Find all zsh files
typeset -U configs
configs=($DOTFILES/**/*.zsh)
for file in ${configs:#*/completions.zsh}
do
source $file
done
# Load autocomplete and other zsh stuff
autoload -Uz compinit
compinit -i
for file in ${(M)configs:#*/completions.zsh}
do
source $file
done
unset configs
colorize
You can’t perform that action at this time.