Prompt is blue if connected through SSH

pull/2/head
Bodaniel Jeanes 2010-06-27 05:31:31 +00:00
parent 58769a6faa
commit 91cf3ef846
1 changed files with 6 additions and 2 deletions

View File

@ -1,9 +1,13 @@
function prompt_color() {
if [ "$USER" = "root" ]; then
echo "red"
else
if [ -n "$SSH_TTY" ]; then
echo "blue"
else
echo "green"
fi
fi
}
# Prompts