Last active
March 26, 2018 20:01
-
-
Save mejibyte/bce163aa5f3f1920d3f72c5b42979ff4 to your computer and use it in GitHub Desktop.
PS1: A nicely formatted command line.
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
hg_bookmark() { | |
hg bookmarks 2> /dev/null | \ | |
awk '/\*/ { printf "\033[38;5;60m("$2")\033[00m" }' | |
} | |
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[38;5;59m\]\D{%T}\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\] $(hg_bookmark)\n\[\033[01;31m\]\$\[\033[00m\] ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment