소스 검색

zsh: aws completion

raylu 6 달 전
부모
커밋
ad21dc5b9e
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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"