diff --git a/.profile b/.profile
index 1b2907ea..d0fc37c7 100755
--- a/.profile
+++ b/.profile
@@ -109,7 +109,7 @@ fi
 
 # Set up editor aliases
 for editor in vim vi nano; do
-	if command -v "$editor" > /dev/null 2>&1; then
+	if has "$editor"; then
 		export EDITOR="$editor"
 		break
 	fi
@@ -129,6 +129,17 @@ if has emerge; then
 	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 has instantmusic; then
 	alias song='instantmusic -p -s'