Advertisement
johny_ferreira

johny's bash prompt

Jun 26th, 2021
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. PS1='┏${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\e[47m \u@\h \[\033[00m\]\e[44m\[\033[01;37m\] \w \[\033[37m\]\e[033\e[40m$( [ "($(git branch 2> /dev/null | grep -F "* ";))" = "()" ] || echo " ($(git branch 2> /dev/null | grep -F "* " | cut -d " " -f 2)) " )\e[033\e[49m$( [ "($(git branch 2> /dev/null | grep -F "* "))" = "()" ] || echo "$([ "$(git status | grep "working tree clean")" == "" ] && echo "\e[033\e[31m\]\e[033\e[40m✗ " || echo "\e[033\e[32m\]\e[033\e[40m✓ ")")\e[033\e[00m\]\n┗━━▶ '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement