From 41b4a4687f6dd0486452d881e9590fb18890d3cf Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 20 Aug 2017 17:27:06 -0500 Subject: [PATCH] ZSH: Give .profile highest priority in .zshrc --- .zshrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 364f8f87..35cbe3e5 100644 --- a/.zshrc +++ b/.zshrc @@ -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