zsh aliases: arch linux/debian pakage manager detection

This commit is contained in:
Henrik Lissner 2016-10-06 13:39:34 +02:00
parent b3a742eadc
commit 332e03010a

View file

@ -177,8 +177,12 @@ case $OSTYPE in
alias codekit='open -a CodeKit' alias codekit='open -a CodeKit'
;; ;;
"linux"*) "linux"*)
alias apt='sudo apt-get' is-callable apt-get && \
alias aptu='sudo apt-get update && sudo apt-get upgrade' alias apt='sudo apt-get' && \
alias aptu'sudo apt-get update && sudo apt-get upgrade'
is-callable pacman && \
alias pac='sudo pacman' && \
alias pacu='sudo pacman -Syu'
;; ;;
"cygwin"*) "cygwin"*)
;; ;;