Generate bash completion for each case in case statement

I can't get the formatting right but:

This script created by Termux Launcher.

Do not change anything !!!

Your changes will be override!!!

Recomended:

source this file to your

~/.bashrc or ~/.bash_profile to launch app with

command on termux by calling

'launch [appname]'

Author : Amsit (@amsitlab) [email protected]

launch(){ case "$1" in --help|-h) printf "Usage:\n" printf "\tlaunch [appname]\n" printf "\t\tLaunching application\n" printf "\t\tType 'launch --list' to view list of applications name.\n" printf "\t\tExample: launch whatsapp\n\n" printf "\tlaunch [--list|-l]\n" printf "\t\tDisplaying available apps\n\n" printf "\tlaunch [--help|-h]\n" printf "\t\tDisplaying this message and exit .\n\n" ;; Minimal-Clock|minimal-clock) am start -n 'com.jmt.clockwidget/.ConfigureWidget' --user 0 &> /dev/null printf "Launch 'Minimal Clock'\n" ;; Amazon-Shopping|amazon-shopping) am start -n 'com.amazon.mShop.android.shopping/com.amazon.mShop.home.HomeActivity' --user 0 &> /dev/null printf "Launch 'Amazon Shopping'\n" ;; <snip>

And so on

/r/linuxquestions Thread Parent