update
This commit is contained in:
parent
6f6b4cddd7
commit
706cd03706
13
aliases.sh
13
aliases.sh
|
@ -1,4 +1,7 @@
|
|||
#!/bin/sh
|
||||
ALIASES_GREEN='\033[0;32m'
|
||||
ALIASES_BLUE='\033[0;34m'
|
||||
ALIASES_NC='\033[0m' # No Color
|
||||
|
||||
echo "Aliases added:"
|
||||
echo " cs venv"
|
||||
|
@ -6,6 +9,8 @@ echo " n ns pc cdlf lfcd g gg gitknow"
|
|||
echo " mc newsh smartresize"
|
||||
echo " red alice ultra jade tin pest p1 pi pi4 pi02"
|
||||
echo ""
|
||||
echo -e "Update system with: \"${ALIASES_GREEN}update${ALIASES_NC}\""
|
||||
echo ""
|
||||
|
||||
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 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
|
||||
# https://github.com/gokcehan/lf/issues/138#issuecomment-464477665
|
||||
|
@ -82,6 +87,12 @@ lfcd() {
|
|||
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
|
||||
# $1 - output directory
|
||||
# $2 - size
|
||||
|
|
Loading…
Reference in New Issue