mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 19:14:39 +02:00
Create pacman alias only, if pacman available
This commit is contained in:
parent
b37ff1b7fc
commit
75e192f01f
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ if [ ! -z "$(type sudo 2>/dev/null)" -a "$USER" != 'root' ]; then
|
||||||
done
|
done
|
||||||
unset sudo
|
unset sudo
|
||||||
|
|
||||||
pacman(){
|
type pacman >/dev/null 2>&1 && pacman(){
|
||||||
local sudo_needed
|
local sudo_needed
|
||||||
# Check if pacman has -S, -R or -U option
|
# Check if pacman has -S, -R or -U option
|
||||||
# which should indicate in most times if we need sudo
|
# which should indicate in most times if we need sudo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue