Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 2cc3971

Browse files
committed
Remove todo.txt stuff
1 parent faaf26d commit 2cc3971

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

‎zsh/prompt.zsh‎

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,32 +59,13 @@ rb_prompt(){
5959
fi
6060
}
6161

62-
# This keeps the number of todos always available the right hand side of my
63-
# command line. I filter it to only count those tagged as "+next", so it's more
64-
# of a motivation to clear out the list.
65-
todo(){
66-
if (( $+commands[todo.sh] ))
67-
then
68-
num=$(echo $(todo.sh ls +next | wc -l))
69-
let todos=num-2
70-
if [ $todos != 0 ]
71-
then
72-
echo "$todos"
73-
else
74-
echo ""
75-
fi
76-
else
77-
echo ""
78-
fi
79-
}
80-
8162
directory_name(){
8263
echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}"
8364
}
8465

8566
export PROMPT=$'\n$(rb_prompt) in $(directory_name) $(git_dirty)$(need_push)\n› '
8667
set_prompt () {
87-
export RPROMPT="%{$fg_bold[cyan]%}$(todo)%{$reset_color%}"
68+
export RPROMPT="%{$fg_bold[cyan]%}%{$reset_color%}"
8869
}
8970

9071
precmd() {

0 commit comments

Comments
 (0)