Skip to content

Instantly share code, notes, and snippets.

@fastjack
Created July 25, 2017 12:35
Show Gist options
  • Save fastjack/460cc70fc2bb882f5f3ca7a6b1e445f1 to your computer and use it in GitHub Desktop.
Save fastjack/460cc70fc2bb882f5f3ca7a6b1e445f1 to your computer and use it in GitHub Desktop.
Test
prompt_context() {
local user=`whoami`
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CONNECTION" ]]; then
prompt_segment white blue " %(!.%{%F{yellow}%}.)$user@%m "
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment