Browse Source

zsh: aws completion

raylu 6 months ago
parent
commit
ad21dc5b9e
1 changed files with 6 additions and 1 deletions
  1. 6 1
      zshrc

+ 6 - 1
zshrc

@@ -158,7 +158,12 @@ if builtin which jj > /dev/null; then
 	source <(COMPLETE=zsh jj)
 fi
 
-if [ -x /usr/bin/fzf ]; then
+if builtin which aws_completer > /dev/null; then
+	autoload bashcompinit && bashcompinit
+	complete -C aws_completer aws
+fi
+
+if builtin which fzf > /dev/null; then
 	FZF_DEFAULT_OPTS='--no-mouse'
 	source "/usr/share/doc/fzf/examples/key-bindings.zsh"