/ 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:
committer@tuxwarrior
2025-03-30 03:12:01 -05:00
parent edd84f6a64
commit 3df806b25c
2 changed files with 8 additions and 8 deletions

View File

@@ -11,9 +11,9 @@ alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias azurevpnclient="/opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpnclient"
alias ct="sudo ct"
alias ct+="sudo ct dots+"
alias ctd="sudo ct dots"
alias cts="sudo ct sw"
#alias ct+="sudo ct dots+"
#alias ctd="sudo ct dots"
#alias cts="sudo ct sw"
alias ffind="sudo find / -type f -name"
alias gparted="sudo gparted"
alias keymap="setxkbmap -model pc105 -layout us,no -option grp:caps_toggle,grp_led:scroll"

View File

@@ -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