ZSH: Give .profile highest priority in .zshrc

This commit is contained in:
Salt 2017-08-20 17:27:06 -05:00
parent 6b8cdc8a52
commit 41b4a4687f

8
.zshrc
View File

@ -1,10 +1,6 @@
#export PATH=$HOME/.bin:$HOME/.local/bin:/usr/local/bin:$PATH
if [[ -f "/etc/profile" ]]; then
source /etc/profile 2>& /dev/null
fi
if [[ -f "$HOME/.profile" ]]; then
source "$HOME/.profile" 2>& /dev/null
fi
export ZSH=/home/salt/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
@ -58,3 +54,7 @@ autoload -Uz compinit
compinit
source $ZSH/oh-my-zsh.sh
if [[ -f "$HOME/.profile" ]]; then
source "$HOME/.profile" 2>& /dev/null
fi