Check for files before sourcing them

This commit is contained in:
Josh Sherman 2017-12-24 13:56:03 -06:00
parent d253ed9a3a
commit 5c2e3da7ec
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

10
zshrc
View file

@ -1,6 +1,12 @@
#!/usr/bin/env zsh
source $HOME/.env
if [ -f $HOME/.env ]; then
source $HOME/.env
fi
if [ -f $HOME/.aliases ]; then
source $HOME/.aliases
fi
fpath=($DOTFILES/vendor/zsh-users/zsh-completions/src $fpath)
@ -74,8 +80,6 @@ git_branch() {
(command git symbolic-ref -q HEAD || command git name-rev --name-only --no-undefined --always HEAD) 2>/dev/null
}
source $DOTFILES/aliases
# Because `npm` shit the bed on me...
ulimit -n 4096