Skip to content

Commit

Permalink
"AM" 2.2.5 RELEASED!
Browse files Browse the repository at this point in the history
New "-d" option and a newer app's database management with auto-completion support (experimental).
  • Loading branch information
ivan-hc authored Feb 23, 2022
1 parent c6398ab commit 129a2c9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion APP-MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ case "$1" in
USAGE: "am -c"
DESCRIPTION: Removes all the unnecessary files and temporary folders.
-d, db, database, terminal
USAGE: "am -d"
DESCRIPTION: Opens a shell in /opt/am/appdb with a full support for a
dedicated bash autocompletion (complete a keyword with the TAB key)
using the names of all installable applications in the "AM" repository.
-f, files
USAGE: "am -f"
DESCRIPTION: Shows the installed programs managed by "AM".
Expand Down Expand Up @@ -155,6 +161,8 @@ case "$1" in
'-c'|'clean') echo ""; echo " CLEANING OF TEMPORARY FILES AND FOLDERS IN PROGRESS" && sleep 1 && echo "" && echo " PRESS CTRL+C TO ABORT." && sleep 1 &&
echo "" && for i in {5..1}; do echo -ne " $i\r" && sleep 1; done &&
echo ""; rm -R -f /opt/am/appdb/*; rm -R -f /opt/am/.cache/*; rm -R -f /opt/*/tmp; echo "" && echo " DONE!"; echo "" ;;
'-d'|'db'|'database'|'terminal')
for f in /opt/am/appdb; do exo-open --working-directory "$f" --launch TerminalEmulator; exit; done;;
'-f'|'files') echo ""; echo $(echo "YOU HAVE INSTALLED "; cd /opt && find -name 'remove' -printf "%h\n" | sort -u | wc -l;
echo " STANDALONE PROGRAMS MANAGED BY THE 'AM' COMMAND:"); echo "";
cd /opt && find -name 'remove' -printf "%h\n" | sort -u | xargs -n 1 basename; echo "" ;;
Expand Down Expand Up @@ -377,6 +385,6 @@ case "$1" in
fi
done
shift;;
'version'|'-v'|'--version') echo "2.2.4-3";;
'version'|'-v'|'--version') echo "2.2.5";;
*) exec /opt/am/APP-MANAGER ;;
esac

0 comments on commit 129a2c9

Please sign in to comment.