mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Fixed that pesky bug and started the aur-helpersG
This commit is contained in:
parent
e718695e46
commit
7579840bf0
2 changed files with 5 additions and 2 deletions
|
|
@ -46,11 +46,14 @@ pacdisowned() {
|
|||
comm -23 "$fs" "$db"
|
||||
}
|
||||
|
||||
asroot() {
|
||||
whence sudo && sudo $@ || su -c "$@"
|
||||
}
|
||||
|
||||
pacman() {
|
||||
pacman_bin=${commands[pacman-color]:-/usr/bin/pacman}
|
||||
case $1 in
|
||||
# The following line is a pure bug, Please fix!
|
||||
-S | -S[^sih]* | -R* | -U*) =sudo /bin/su -c "$pacman_bin $@" ;;
|
||||
-S | -S[^sih]* | -R* | -U*) asroot $pacman_bin $@ ;;
|
||||
*) $pacman_bin "$@" ;;
|
||||
esac
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue