From 3df806b25cf2253d366cb6285f7f1b762d606e32 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Sun, 30 Mar 2025 03:12:01 -0500 Subject: [PATCH] / 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. --- dots/bash/.bashrc | 6 +++--- scripts/ct.sh | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dots/bash/.bashrc b/dots/bash/.bashrc index 747f702..874a7bc 100644 --- a/dots/bash/.bashrc +++ b/dots/bash/.bashrc @@ -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" diff --git a/scripts/ct.sh b/scripts/ct.sh index c23bfa9..bd91896 100755 --- a/scripts/ct.sh +++ b/scripts/ct.sh @@ -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