The Please Alias can now also pass through the display
This commit is contained in:
parent
6be15a0a2c
commit
92bf7c6765
1 changed files with 4 additions and 4 deletions
8
main
8
main
|
@ -122,16 +122,16 @@ zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
|||
# Alias please to run0, doas, sudo or su
|
||||
if command -v run0 &> /dev/null
|
||||
then
|
||||
alias please="run0"
|
||||
alias please='run0 WAYLAND_DISPLAY="$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" DISPLAY="$DISPLAY"'
|
||||
elif command -v doas &> /dev/null
|
||||
then
|
||||
alias please="doas"
|
||||
alias please='doas WAYLAND_DISPLAY="$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" DISPLAY="$DISPLAY"'
|
||||
elif command -v sudo &> /dev/null
|
||||
then
|
||||
alias please="sudo"
|
||||
alias please='sudo WAYLAND_DISPLAY="$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" DISPLAY="$DISPLAY"'
|
||||
elif command -v su &> /dev/null
|
||||
then
|
||||
alias please="su -c "
|
||||
alias please='su -c '
|
||||
fi
|
||||
#
|
||||
# Alias la to ls -la
|
||||
|
|
Loading…
Add table
Reference in a new issue