Skip to content

Instantly share code, notes, and snippets.

@scriptonian
Created April 4, 2017 18:43
Show Gist options
  • Save scriptonian/53cbacc1daf5c2cc05a3fe1c1aa476f9 to your computer and use it in GitHub Desktop.
Save scriptonian/53cbacc1daf5c2cc05a3fe1c1aa476f9 to your computer and use it in GitHub Desktop.
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment