Last active
January 20, 2016 22:40
-
-
Save bidulock/5868381 to your computer and use it in GitHub Desktop.
My $PS1. 4 lines. Horizontal rule, datetime, pwd, username@host
This file contains 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
# This was taken and adapted from some reddit thread with a bunch of prompts. | |
# check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. | |
shopt -s checkwinsize | |
PS1="\n\$(s=\$(printf '%*s' \$COLUMNS); echo \${s// /―})\n\D{%Y-%m-%d} \t\n" | |
PS1="$PS1\w\$(__git_ps1)\n" | |
PS1="$PS1${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]\$ "; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment