mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
Add pacaur compatibility to archlinux plugin + refactor
This commit is contained in:
parent
eaf18167bb
commit
485dd2b736
1 changed files with 42 additions and 9 deletions
|
@ -1,12 +1,4 @@
|
||||||
if ! (( $+commands[yaourt] )); then
|
if (( $+commands[yaourt] )); then
|
||||||
upgrade() {
|
|
||||||
sudo pacman -Syu
|
|
||||||
}
|
|
||||||
else
|
|
||||||
upgrade () {
|
|
||||||
yaourt -Syu
|
|
||||||
}
|
|
||||||
|
|
||||||
alias yaconf='yaourt -C'
|
alias yaconf='yaourt -C'
|
||||||
alias yaupg='yaourt -Syua'
|
alias yaupg='yaourt -Syua'
|
||||||
alias yasu='yaourt -Syua --noconfirm'
|
alias yasu='yaourt -Syua --noconfirm'
|
||||||
|
@ -35,6 +27,47 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if (( $+commands[pacaur] )); then
|
||||||
|
alias paupg='pacaur -Syua'
|
||||||
|
alias pasu='pacaur -Syua --noconfirm'
|
||||||
|
alias pain='pacaur -S'
|
||||||
|
alias pains='pacaur -U'
|
||||||
|
alias pare='pacaur -R'
|
||||||
|
alias parem='pacaur -Rns'
|
||||||
|
alias parep='pacaur -Si'
|
||||||
|
alias pareps='pacaur -Ss'
|
||||||
|
alias paloc='pacaur -Qi'
|
||||||
|
alias palocs='pacaur -Qs'
|
||||||
|
alias palst='pacaur -Qe'
|
||||||
|
alias paorph='pacaur -Qtd'
|
||||||
|
alias painsd='pacaur -S --asdeps'
|
||||||
|
alias pamir='pacaur -Syy'
|
||||||
|
|
||||||
|
if (( $+commands[abs] && $+commands[aur] )); then
|
||||||
|
alias paupd='pacaur -Sy && sudo abs && sudo aur'
|
||||||
|
elif (( $+commands[abs] )); then
|
||||||
|
alias paupd='pacaur -Sy && sudo abs'
|
||||||
|
elif (( $+commands[aur] )); then
|
||||||
|
alias paupd='pacaur -Sy && sudo aur'
|
||||||
|
else
|
||||||
|
alias paupd='pacaur -Sy'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if (( $+commands[pacaur] )); then
|
||||||
|
upgrade() {
|
||||||
|
pacaur -Syu
|
||||||
|
}
|
||||||
|
elif (( $+commands[yaourt] )); then
|
||||||
|
upgrade() {
|
||||||
|
yaourt -Syu
|
||||||
|
}
|
||||||
|
else
|
||||||
|
upgrade() {
|
||||||
|
pacman -Syu
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
# Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips
|
# Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips
|
||||||
alias pacupg='sudo pacman -Syu'
|
alias pacupg='sudo pacman -Syu'
|
||||||
alias pacin='sudo pacman -S'
|
alias pacin='sudo pacman -S'
|
||||||
|
|
Loading…
Reference in a new issue