Skip to content

Instantly share code, notes, and snippets.

@MaxAtoms
Created November 26, 2017 16:54
Show Gist options
  • Save MaxAtoms/25da932459224c959c14f470a8e3bd94 to your computer and use it in GitHub Desktop.
Save MaxAtoms/25da932459224c959c14f470a8e3bd94 to your computer and use it in GitHub Desktop.
My bash prompt
PS1='[\[\033[1;33m\]\# \[\033[1;32m\]\u@\H \[\033[1;36m\]\w\[\033[0m\]]\$ '
@MaxAtoms
Copy link
Author

This is the Bash prompt which I currently use.
It shows:

  • Command number
  • username@hostname
  • Path of the working directory (shortened to show only current and parent directory)

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