Skip to content

Instantly share code, notes, and snippets.

@gaga5lala
Last active December 29, 2017 08:27
Show Gist options
  • Save gaga5lala/54955fc93250824249cad8bfed4a0eaa to your computer and use it in GitHub Desktop.
Save gaga5lala/54955fc93250824249cad8bfed4a0eaa to your computer and use it in GitHub Desktop.
# vim ~/.zshrc
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
@gaga5lala
Copy link
Author

original agnoster config

prompt_context() {
  local user=`whoami`

  if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CONNECTION" ]]; then
    prompt_segment $PRIMARY_FG default " %(!.%{%F{yellow}%}.)$user@%m "
  fi
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment