From 584e90f74202d8376cbfa5778bf015ce79f7cc6b Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Wed, 23 May 2018 10:27:23 -0700 Subject: [PATCH] Move zsh path modifications to .zprofile --- zsh/.zprofile | 13 +++++++++++++ zsh/.zshenv | 2 -- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/zsh/.zprofile b/zsh/.zprofile index e69de29..2f0ed04 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -0,0 +1,13 @@ +# source the nix profile if it exists +if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then + . $HOME/.nix-profile/etc/profile.d/nix.sh +fi + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/bin" ] ; then + PATH="$HOME/bin:$PATH" +fi + +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi diff --git a/zsh/.zshenv b/zsh/.zshenv index 2feafce..37c2f62 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,5 +1,3 @@ -export PATH=$HOME/bin:$HOME/.local/bin:$PATH - export EDITOR='nvim' export VISUAL=$EDITOR