Skip to content

Commit

Permalink
Only showing user@host if it's a remote machine.
Browse files Browse the repository at this point in the history
  • Loading branch information
jqr committed Dec 2, 2011
1 parent a6a43f5 commit f8cb5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_profile.d/prompt.sh
@@ -1,6 +1,6 @@
if [ $SSH_TTY ]; then
PS1="$RED\u@\h $RED\w $LIGHTRED\$(current_git_branch)\$(git_special)$LIGHTRED$ $NC"
PS1="$PS1\[\e]0;\u@\h\a\]"
else
PS1="$GREEN\h $RED\w $LIGHTRED\$(current_git_branch)\$(git_special)$LIGHTRED$ $NC"
fi
PS1="$PS1\[\e]0;\u@\h\a\]"

0 comments on commit f8cb5f3

Please sign in to comment.