Add argcomplete to zshrc

This commit is contained in:
flyingscorpio@arch-desktop 2020-11-19 08:55:01 +01:00
parent eecf1e5fda
commit 0084a3963f
3 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,8 @@ fileignoreconfig:
- filename: dotfiles/shell/profile
ignore_detectors:
- filename
- filename: dotfiles/zsh/zshrc
checksum: 4c80068ae9cfeee19d747d581b8d9ae9d8a947bb07d17eaa963731a1f7d6ec48
- filename: pacman_hooks/borg_backup.hook
ignore_detectors:
- filename

View file

@ -70,7 +70,6 @@ if pip show argcomplete >/dev/null 2>&1; then
eval "$(register-python-argcomplete schedule_timer)"
fi
case "$TERM" in
xterm-kitty) source <(kitty + complete setup bash);;
esac

View file

@ -40,6 +40,11 @@ setopt COMPLETE_ALIASES
case "$TERM" in
xterm-kitty) kitty + complete setup zsh | source /dev/stdin
esac
if pip show argcomplete >/dev/null 2>&1; then
autoload -U bashcompinit
bashcompinit
eval "$(register-python-argcomplete schedule_timer)"
fi
# Use vim keys in tab complete menu
bindkey -M menuselect 'h' vi-backward-char