Created
June 8, 2023 03:26
-
-
Save Koushikphy/7937f2647270c5560b922a0d788cf2ad to your computer and use it in GitHub Desktop.
My bash prompt to show datetime as well as git repo details
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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