Permalink
Browse files

Detect ssh connections through dropbear

  • Loading branch information...
1 parent 10035f2 commit 2d80d22ec9303e16d8e5dbff391aeb0618eef783 @caio committed Mar 30, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 theme/default/prompt.d/00-ssh_hostname.bash
@@ -2,6 +2,9 @@ __prompt_ssh_hostname() {
if [ -n "$SSH_CLIENT" ]; then
bashd_prompt_append "${FG_BOLD_GREEN}$(hostname -s) "
fi
+ if [[ $SSH_AUTH_SOCK =~ dropbear ]]; then
+ bashd_prompt_append "${FG_BOLD_RED}$(hostname -s) "
+ fi
}
bashd_prompt_register __prompt_ssh_hostname

0 comments on commit 2d80d22

Please sign in to comment.