Skip to content

Instantly share code, notes, and snippets.

@Koushikphy
Created June 8, 2023 03:26
Show Gist options
  • Save Koushikphy/7937f2647270c5560b922a0d788cf2ad to your computer and use it in GitHub Desktop.
Save Koushikphy/7937f2647270c5560b922a0d788cf2ad to your computer and use it in GitHub Desktop.
My bash prompt to show datetime as well as git repo details
# My bash prompt to show datetime as well as git repo details
. /etc/bash_completion.d/git-prompt
export GIT_PS1_SHOWDIRTYSTATE=1
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h \[\e[36m\][\D{%H:%M:%S %d-%b}]\[\e[m\]\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\033[0;33m$(__git_ps1 " (%s)")\033[0m\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment