mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Fixed a bug.
This commit is contained in:
parent
fa1b08e2f7
commit
3ef56efa37
1 changed files with 2 additions and 3 deletions
|
|
@ -48,9 +48,8 @@ pacdisowned() {
|
|||
|
||||
pacman() {
|
||||
pacman_bin=${commands[pacman-color]:-/usr/bin/pacman}
|
||||
sudo_bin==sudo
|
||||
case $1 in
|
||||
-S | -S[^sih]* | -R* | -U*) $sudo_bin /bin/su -c"$pacman_bin \"$@\"" ;;
|
||||
-S | -S[^sih]* | -R* | -U*) =sudo /bin/su -c"$pacman_bin $@" ;;
|
||||
*) $pacman_bin "$@" ;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue