Skip to content

Instantly share code, notes, and snippets.

@uxmoon
Created February 11, 2018 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uxmoon/930b7bcf95d024d50a55fbb0f8c6fbe2 to your computer and use it in GitHub Desktop.
Save uxmoon/930b7bcf95d024d50a55fbb0f8c6fbe2 to your computer and use it in GitHub Desktop.
hide username in terminal (linux ubuntu)
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