Sfoglia il codice sorgente

Don't put taskwarrior commands to history

Since task IDs are dynamic in taskwarrior, commands like `task 4 delete`
and `task 4 done` can be destructive with hard-to-trace damage if
inadverently repeated.

Better to avoid that, even at cost of not remembering anything.

(Note that `task` without arguments is still remembered; there's no harm
in repeating that, and it still can be convenient eg. w/ ^L).
Alois Mahdal 9 anni fa
parent
commit
55a4088d80
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      dotfiles/bash/main.bashrc

+ 1
- 0
dotfiles/bash/main.bashrc Vedi File

@@ -149,6 +149,7 @@ PROMPT_COMMAND="history -n; history -w; history -c; history -r; $PROMPT_COMMAND"
149 149
 
150 150
 HISTIGNORE="$HISTIGNORE:ls:ll:la:cd"
151 151
 HISTIGNORE="$HISTIGNORE:git dc:git st"
152
+HISTIGNORE="$HISTIGNORE:task *:git dc:git st"
152 153
 #export HISTIGNORE="$HISTIGNORE:se *:sc *"
153 154
 HISTSIZE=-1
154 155
 HISTFILESIZE=100000