zsh: Fix PATH ordering
This commit is contained in:
parent
b99c791868
commit
e7e0b9a4db
1 changed files with 7 additions and 7 deletions
|
|
@ -1,13 +1,13 @@
|
||||||
# source the nix profile if it exists
|
#!/usr/bin/env zsh
|
||||||
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 [ -e "${HOME}/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
if [ -d "$HOME/.local/bin" ] ; then
|
source "${HOME}/.nix-profile/etc/profile.d/nix.sh"
|
||||||
PATH="$HOME/.local/bin:$PATH"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$HOME/bin" ] ; then
|
if [ -d "$HOME/bin" ] ; then
|
||||||
PATH="$HOME/bin:$PATH"
|
PATH="$HOME/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d "$HOME/.local/bin" ] ; then
|
||||||
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue