From 0c71732c977edd20dc5a8b9fb68cf6643eda58cd Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 21 Nov 2022 14:09:37 +0000 Subject: [PATCH] Update dotfiles/.local/share/bash-completion/generate.sh, dotfiles/.zshrc --- dotfiles/.local/share/bash-completion/generate.sh | 5 +++++ dotfiles/.zshrc | 3 +++ 2 files changed, 8 insertions(+) diff --git a/dotfiles/.local/share/bash-completion/generate.sh b/dotfiles/.local/share/bash-completion/generate.sh index ad413fcc..731d5169 100644 --- a/dotfiles/.local/share/bash-completion/generate.sh +++ b/dotfiles/.local/share/bash-completion/generate.sh @@ -68,6 +68,11 @@ if command -v mcfly > /dev/null; then mcfly init bash > "$HOME/.local/share/bash-completion/completions/mcfly.bash" fi +### npm +if command -v npm > /dev/null; then + npm completion > "$HOME/.local/share/bash-completion/completions/npm.bash" +fi + ### Poetry if command -v poetry > /dev/null; then poetry completions bash > "$HOME/.local/share/bash-completion/completions/poetry.bash" diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index 381a2d5f..6f9e4b57 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -67,6 +67,9 @@ zstyle ':completion:*' verbose true # shellcheck disable=SC2016 zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' +### For Debugging (clears completion cache each time) +zstyle ":completion:*:commands" rehash 1 + # Key bindings bindkey -e bindkey '^U' backward-kill-line