/ ct s, ct d, ct d+
new short names for parameters, so caretaker software, dots and dots+ can be written that way. removed cts, ctd and ctd+ from bashrc. better using these short names, instead of occupying several commands.
This commit is contained in:
@@ -31,7 +31,7 @@ fi
|
||||
|
||||
this_file_name=`basename "$0"`
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "usage: '$this_file_name { dots | dots+ | uf / upd-full [host]? | sw / software {update/install/search/orphans/uninstall} [host]? | us / upd-self | yay }'"
|
||||
echo "usage: '$this_file_name { d/dots | d+/dots+ | uf / upd-full [host]? | s/sw/software {update/install/search/orphans/uninstall} [host]? | us / upd-self | yay }'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -41,7 +41,7 @@ parameter_2=$3
|
||||
|
||||
shopt -s extglob
|
||||
case $operation in
|
||||
!(dots|dots+|uf|upd-full|services|sw|software|us|upd-self|yay))
|
||||
!(d|dots|d+|dots+|uf|upd-full|services|s|sw|software|us|upd-self|yay))
|
||||
echo "error: unknown operation '$operation'"
|
||||
exit
|
||||
;;
|
||||
@@ -84,7 +84,7 @@ execute_script() {
|
||||
|
||||
# update dot files
|
||||
shopt -s extglob
|
||||
if [ $operation == "dots" ] ; then
|
||||
if [ $operation == "d" ] || [ $operation == "dots" ] ; then
|
||||
|
||||
execute_script 99_deploy.sh dots
|
||||
|
||||
@@ -93,7 +93,7 @@ shopt -u extglob
|
||||
|
||||
# update dots+ (wallpapers, fonts, ++)
|
||||
shopt -s extglob
|
||||
if [ $operation == "dots+" ] ; then
|
||||
if [ $operation == "d+" ] || [ $operation == "dots+" ] ; then
|
||||
|
||||
execute_script 99_deploy.sh dots+
|
||||
|
||||
@@ -121,7 +121,7 @@ shopt -u extglob
|
||||
|
||||
# install software (update system)
|
||||
shopt -s extglob
|
||||
if [ $operation == "sw" ] || [ $operation == "software" ] ; then
|
||||
if [ $operation == "s" ] || [ $operation == "sw" ] || [ $operation == "software" ] ; then
|
||||
|
||||
if [ -z "${parameter_1}" ]; then
|
||||
parameter_1=update
|
||||
|
||||
Reference in New Issue
Block a user