Skip to content

Instantly share code, notes, and snippets.

@Eric-Jalal
Last active September 10, 2018 07:44
Show Gist options
  • Save Eric-Jalal/5589922ee2bc58d1673d21d287a04805 to your computer and use it in GitHub Desktop.
Save Eric-Jalal/5589922ee2bc58d1673d21d287a04805 to your computer and use it in GitHub Desktop.
Open your .zshrc and paste this at the bottom:
```
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