diff --git a/home/dotfiles/profile b/home/dotfiles/profile index f2e91db..4ce1d39 100644 --- a/home/dotfiles/profile +++ b/home/dotfiles/profile @@ -53,6 +53,18 @@ log() { fi } +############################################################################## +# home bin +# Including this before doing any checks is crucial for detecting user-local +# installed binaries. + +section "home bin" +if [ $PROFILE_BIN -gt 0 ]; then + PATH="$HOME/bin:$HOME/.local/bin:$PATH" + export PATH +fi +section_end + ############################################################################## # Profile tweaks and features @@ -75,17 +87,13 @@ PROFILE_SYSTEMD=${PROFILE_SYSTEMD:-$(when_binary_available systemctl)} PROFILE_THEFUCK=${PROFILE_THEFUCK:-$(when_binary_available thefuck)} PROFILE_YARN=${PROFILE_YARN:-$(when_binary_available yarn)} +section "profile variables" +set | grep '^PROFILE_' +section_end + ############################################################################## # 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)"