# Make our prompt awesome. :) source ~/.bash_colours TICK="✓" CROSS="✗" URGENT="❗" OVERDUE="☠️" DUETODAY="😱" DUETOMORROW="📅" function task_indicator { if [ `task +READY +OVERDUE count` -gt "0" ]; then echo "$OVERDUE" elif [ `task +READY +DUETODAY count` -gt "0" ]; then echo "$DUETODAY" elif [ `task +READY +DUETOMORROW count` -gt "0" ]; then echo "$DUETOMORROW" elif [ `task +READY urgency \> 10 count` -gt "0" ]; then echo "$URGENT" else echo '$' fi } PS1="\[\e]0;\u@\h: \w\a\]"'$(BRANCH=`git rev-parse --abbrev-ref HEAD 2> /dev/null`; if [ -n "$BRANCH" ]; then DIRTY=`git status --porcelain --untracked-files=no 2> /dev/null`; if [ -n "$DIRTY" ]; then echo "'$BRed'$CROSS "; else echo "'$BGreen'$TICK "; fi; fi;)'"$Color_Off${debian_chroot:+($debian_chroot)}\w$BYellow\$(__git_ps1)\$(task_indicator) $Color_Off"