.profile: Add sudo prompts
This commit is contained in:
parent
2c5d06cba2
commit
c26563ec05
13
.profile
13
.profile
@ -109,7 +109,7 @@ fi
|
|||||||
|
|
||||||
# Set up editor aliases
|
# Set up editor aliases
|
||||||
for editor in vim vi nano; do
|
for editor in vim vi nano; do
|
||||||
if command -v "$editor" > /dev/null 2>&1; then
|
if has "$editor"; then
|
||||||
export EDITOR="$editor"
|
export EDITOR="$editor"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -129,6 +129,17 @@ if has emerge; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Sudo prompt and such
|
||||||
|
if has sudo; then
|
||||||
|
case $_baseshell in
|
||||||
|
*bash|*zsh)
|
||||||
|
export SUDO_PROMPT=$'[\e[34msudo\e[0m as %U]: Password for %p: '
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
export SUDO_PROMPT='[sudo as %U]: Password for %p: '
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
# If we have instantmusic, add aliases for that
|
# If we have instantmusic, add aliases for that
|
||||||
if has instantmusic; then
|
if has instantmusic; then
|
||||||
alias song='instantmusic -p -s'
|
alias song='instantmusic -p -s'
|
||||||
|
Loading…
Reference in New Issue
Block a user