6 ms·
I modified slightly the suggestion for bash prompt, to read as follows (the 'git' stuff is pretty standard): function count_tasks { ~/bin/t | wc -l | s
by rnadna 16y ago
I modified slightly the suggestion for bash prompt, to read as follows (the 'git' stuff is pretty standard):
function count_tasks {
~/bin/t | wc -l | sed -e's/ *//' 2> /dev/null | sed -e s/0//'
}
export PS1="\h:\W\$(parse_git_branch)\$(count_tasks) $ "