diff --git a/config/includes.chroot/etc/skel/.bashrc b/config/includes.chroot/etc/skel/.bashrc index 6b79035..768ac45 100644 --- a/config/includes.chroot/etc/skel/.bashrc +++ b/config/includes.chroot/etc/skel/.bashrc @@ -127,6 +127,12 @@ if ! shopt -oq posix; then fi fi +# Add sudo on start of line if installed and no root user +# Alt-s: +if [ "$(id -u)" -ne 0 ] && [ -f /usr/bin/sudo ]; then + bind '"\es": "\C-asudo \C-e"' +fi + export LESS_TERMCAP_mb=$'\e[1;32m' export LESS_TERMCAP_md=$'\e[1;32m' export LESS_TERMCAP_me=$'\e[0m' diff --git a/config/includes.chroot/etc/skel/.inputrc b/config/includes.chroot/etc/skel/.inputrc index 12c92df..148dcf2 100644 --- a/config/includes.chroot/etc/skel/.inputrc +++ b/config/includes.chroot/etc/skel/.inputrc @@ -56,10 +56,6 @@ set skip-completed-text On #set completion-prefix-display-length 9 -# Add sudo on start of line -# Alt-s: -"\es": "\C-asudo \C-e" - "\em": shell-forward-word "\eq": shell-backward-word # Alt-f: