The Please Alias can now also pass through the display

This commit is contained in:
Paul Fey 2024-10-03 11:22:03 +02:00
parent 6be15a0a2c
commit 92bf7c6765

8
main
View file

@ -122,16 +122,16 @@ zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
# Alias please to run0, doas, sudo or su # Alias please to run0, doas, sudo or su
if command -v run0 &> /dev/null if command -v run0 &> /dev/null
then 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 elif command -v doas &> /dev/null
then 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 elif command -v sudo &> /dev/null
then 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 elif command -v su &> /dev/null
then then
alias please="su -c " alias please='su -c '
fi fi
# #
# Alias la to ls -la # Alias la to ls -la