Check for files before sourcing them
This commit is contained in:
parent
d253ed9a3a
commit
5c2e3da7ec
1 changed files with 7 additions and 3 deletions
10
zshrc
10
zshrc
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue