1
0
Fork 0

zsh: Fix PATH ordering

This commit is contained in:
Jeremy Kaplan 2019-09-12 15:15:40 -07:00 committed by Jeremy Kaplan
commit e7e0b9a4db

View file

@ -1,13 +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
#!/usr/bin/env zsh
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
if [ -e "${HOME}/.nix-profile/etc/profile.d/nix.sh" ]; then
source "${HOME}/.nix-profile/etc/profile.d/nix.sh"
fi
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi