Move home bin folder registration in PATH to top of profile script.

Fixes the issue where the user-installed Python scripts are no longer
found in PATH.
master
Icedream 2018-02-17 20:48:50 +01:00
parent dc69589b62
commit 2db976107a
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 8 additions and 8 deletions

View File

@ -65,6 +65,14 @@ log() {
##############################################################################
# Actual profile code from here
# home bin
section "home bin"
if [ $PROFILE_BIN -gt 0 ]; then
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
export PATH
fi
section_end
section "thefuck"
if [ $PROFILE_THEFUCK -gt 0 ]; then
eval "$(thefuck --alias)"
@ -164,14 +172,6 @@ if [ $PROFILE_NODE -gt 0 ]; then
fi
section_end
# home bin
section "home bin"
if [ $PROFILE_BIN -gt 0 ]; then
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
export PATH
fi
section_end
# alias
section "alias"
if [ $PROFILE_ALIAS -gt 0 ]; then