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
parent
dc69589b62
commit
2db976107a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue