This commit is contained in:
Ray Elliott 2023-09-17 17:23:57 +01:00
parent 6f6b4cddd7
commit 706cd03706
1 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
ALIASES_GREEN='\033[0;32m'
ALIASES_BLUE='\033[0;34m'
ALIASES_NC='\033[0m' # No Color
echo "Aliases added:" echo "Aliases added:"
echo " cs venv" echo " cs venv"
@ -6,6 +9,8 @@ echo " n ns pc cdlf lfcd g gg gitknow"
echo " mc newsh smartresize" echo " mc newsh smartresize"
echo " red alice ultra jade tin pest p1 pi pi4 pi02" echo " red alice ultra jade tin pest p1 pi pi4 pi02"
echo "" echo ""
echo -e "Update system with: \"${ALIASES_GREEN}update${ALIASES_NC}\""
echo ""
alias backup='sudo borgmatic create --verbosity 1 --files' alias backup='sudo borgmatic create --verbosity 1 --files'
@ -63,7 +68,7 @@ alias jade='ssh root@jade.isnet.uk'
alias tin='ssh root@tin.rayelliott.dev' alias tin='ssh root@tin.rayelliott.dev'
alias pest='ssh ray@77.68.75.71' alias pest='ssh ray@77.68.75.71'
alias pacman="sudo ~/.src/archnews/archnews_wrap && rm /home/ray/.checkupdates" alias pacman="sudo ~/.src/archnews/archnews_wrap"
# lf gets confused by TERMINFO env var when running in tmux # lf gets confused by TERMINFO env var when running in tmux
# https://github.com/gokcehan/lf/issues/138#issuecomment-464477665 # https://github.com/gokcehan/lf/issues/138#issuecomment-464477665
@ -82,6 +87,12 @@ lfcd() {
cdlf cdlf
} }
update() {
echo -e "Executing \"${ALIASES_GREEN}pacman -Syu${ALIASES_NC}\" via \"${ALIASES_BLUE}archnews_wrap${ALIASES_NC}\" wrapper"
sudo ~/.src/archnews/archnews_wrap -Syu && cat /dev/null > /home/ray/.checkupdates
}
# functions # functions
# $1 - output directory # $1 - output directory
# $2 - size # $2 - size