Skip to content

Instantly share code, notes, and snippets.

@RobbiNespu
Created December 21, 2020 02:09
Show Gist options
  • Save RobbiNespu/b53ae0da43ba397321f51ac2e3778eaf to your computer and use it in GitHub Desktop.
Save RobbiNespu/b53ae0da43ba397321f51ac2e3778eaf to your computer and use it in GitHub Desktop.
My favourite PS1
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ \n └─\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\] \[\033[0m\]"
@RobbiNespu
Copy link
Author

RobbiNespu commented Dec 21, 2020

 export PS1="\n\[\033[35m\]> \$(/bin/date)\n\[\033[1;31m\]\u@\h: \[\033[1;34m\]\$(/usr/bin/tty | /bin/sed -e 's:/dev/::'): \[\033[1;34m\]\$(pwd) \[\033[1;36m\]\$(/bin/ls -1 | /usr/bin/wc -l |
/bin/sed 's: ::g') files \[\033[1;33m\]\$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')b\[\033[0m\] \[\033[0m\] \[\033[0;32m\]$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(git:\1) /')\n\[\033[0;32m\] └─\[\033[0m\033[0;32m\] $\[\033[0m\] "

image

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