/ 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:
@@ -11,9 +11,9 @@ alias ls='ls --color=auto'
|
|||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias azurevpnclient="/opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpnclient"
|
alias azurevpnclient="/opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpnclient"
|
||||||
alias ct="sudo ct"
|
alias ct="sudo ct"
|
||||||
alias ct+="sudo ct dots+"
|
#alias ct+="sudo ct dots+"
|
||||||
alias ctd="sudo ct dots"
|
#alias ctd="sudo ct dots"
|
||||||
alias cts="sudo ct sw"
|
#alias cts="sudo ct sw"
|
||||||
alias ffind="sudo find / -type f -name"
|
alias ffind="sudo find / -type f -name"
|
||||||
alias gparted="sudo gparted"
|
alias gparted="sudo gparted"
|
||||||
alias keymap="setxkbmap -model pc105 -layout us,no -option grp:caps_toggle,grp_led:scroll"
|
alias keymap="setxkbmap -model pc105 -layout us,no -option grp:caps_toggle,grp_led:scroll"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ fi
|
|||||||
|
|
||||||
this_file_name=`basename "$0"`
|
this_file_name=`basename "$0"`
|
||||||
if [ $# -lt 1 ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ parameter_2=$3
|
|||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
case $operation in
|
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'"
|
echo "error: unknown operation '$operation'"
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
@@ -84,7 +84,7 @@ execute_script() {
|
|||||||
|
|
||||||
# update dot files
|
# update dot files
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
if [ $operation == "dots" ] ; then
|
if [ $operation == "d" ] || [ $operation == "dots" ] ; then
|
||||||
|
|
||||||
execute_script 99_deploy.sh dots
|
execute_script 99_deploy.sh dots
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ shopt -u extglob
|
|||||||
|
|
||||||
# update dots+ (wallpapers, fonts, ++)
|
# update dots+ (wallpapers, fonts, ++)
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
if [ $operation == "dots+" ] ; then
|
if [ $operation == "d+" ] || [ $operation == "dots+" ] ; then
|
||||||
|
|
||||||
execute_script 99_deploy.sh dots+
|
execute_script 99_deploy.sh dots+
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ shopt -u extglob
|
|||||||
|
|
||||||
# install software (update system)
|
# install software (update system)
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
if [ $operation == "sw" ] || [ $operation == "software" ] ; then
|
if [ $operation == "s" ] || [ $operation == "sw" ] || [ $operation == "software" ] ; then
|
||||||
|
|
||||||
if [ -z "${parameter_1}" ]; then
|
if [ -z "${parameter_1}" ]; then
|
||||||
parameter_1=update
|
parameter_1=update
|
||||||
|
|||||||
Reference in New Issue
Block a user