some more aliases
This commit is contained in:
parent
b6703e11d3
commit
9357cafc9d
|
@ -52,10 +52,10 @@ alias {myip,myip4}="curl http://4.ifconfig.pro"
|
||||||
alias myip6="curl http://6.ifconfig.pro"
|
alias myip6="curl http://6.ifconfig.pro"
|
||||||
alias {dc,compose}="docker-compose"
|
alias {dc,compose}="docker-compose"
|
||||||
alias d="docker"
|
alias d="docker"
|
||||||
alias jekyll="$HOME/Projects/scripts/jekyll.sh"
|
alias jekyll="$HOME/Sync/Projects/scripts/jekyll.sh"
|
||||||
|
|
||||||
alias {p,pass}="gopass"
|
alias {p,pass}="gopass"
|
||||||
|
alias {a,apt}="sudo apt"
|
||||||
|
|
||||||
# **** function definitions ****
|
# **** function definitions ****
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ rdp() {
|
||||||
|
|
||||||
## OS upgrade for various systems
|
## OS upgrade for various systems
|
||||||
update() {
|
update() {
|
||||||
systems="ubuntu arch solus raspbian antergos"
|
systems="ubuntu arch solus raspbian antergos elementary"
|
||||||
issue="$(cat /etc/issue)"
|
issue="$(cat /etc/issue)"
|
||||||
for item in $systems; do
|
for item in $systems; do
|
||||||
echo $issue | grep -i $item >> /dev/null
|
echo $issue | grep -i $item >> /dev/null
|
||||||
|
@ -153,8 +153,8 @@ update() {
|
||||||
done
|
done
|
||||||
|
|
||||||
case $system in
|
case $system in
|
||||||
ubuntu|debian|raspbian)
|
ubuntu|debian|raspbian|elementary)
|
||||||
echo "Updating Ubuntu/Debian.."
|
echo "Updating Debian based system.."
|
||||||
sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y
|
sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y
|
||||||
;;
|
;;
|
||||||
arch|antergos)
|
arch|antergos)
|
||||||
|
|
Loading…
Reference in New Issue