Skip to content

Commit

Permalink
AppMan: if ~/.local/bin disabled, then enable it
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Dec 24, 2023
1 parent 1aca021 commit 0ad8615
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions appman
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ if [ $AMCLI == appman ] 2>/dev/null; then
_no_sudo
fi

if $(! grep -q 'export PATH=$PATH:$(xdg-user-dir USER)/.local/bin' $HOME/.bashrc); then
echo -e '\nexport PATH=$PATH:$(xdg-user-dir USER)/.local/bin\n' >> $HOME/.bashrc
fi

case "$1" in

'') printf "\n USAGE: '$AMCLI [option]'\n '$AMCLI [option] [argument]'\n\n Run the '$AMCLI -h' command to find out more\n\n";;
Expand Down

0 comments on commit 0ad8615

Please sign in to comment.