Skip to content

Commit 43ee971

Browse files
committed
Zsh: Adopt tabtab completion block into managed zshrc
JS CLIs that bundle tabtab (today: td, the Todoist CLI) append a completion-sourcing block to ~/.zshrc, which chezmoi then wants to strip on every apply — an endless tug-of-war. Tabtab cannot be disabled globally, but its installer is idempotent: it skips the append when its source line is already present. Owning the exact block in dot_zshrc ends the churn, and the [[ -f ]] guard makes it a no-op on machines without tabtab completions.
1 parent 897ce21 commit 43ee971

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

home/dot_zshrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ dot::bootstrap
99
# -----------------------------------------------------------------------------
1010
# This is where all sort of random commands will append their stuff
1111
# -----------------------------------------------------------------------------
12+
13+
# tabtab source for packages
14+
# uninstall by removing these lines
15+
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true

0 commit comments

Comments
 (0)