소스 검색

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 년 전
부모
커밋
55a4088d80
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      dotfiles/bash/main.bashrc

+ 1
- 0
dotfiles/bash/main.bashrc 파일 보기

@@ -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