Skip to content

Instantly share code, notes, and snippets.

@obar1
Last active October 25, 2023 03:39
Show Gist options
  • Save obar1/ef585d575f69487d966d58acc0c33376 to your computer and use it in GitHub Desktop.
Save obar1/ef585d575f69487d966d58acc0c33376 to your computer and use it in GitHub Desktop.
my ps1
# - bash history id
# - current pwd but only last folder
# - colored git branch
# v0.1
PS1='\! ${PWD#"${PWD%/*/*}/"}\n\e[1;34m\W$(__git_ps1 " (%s)")] \e[m'
@obar1
Copy link
Author

obar1 commented Oct 25, 2023

sample
image

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