From e35c37bd72fce53be2ae9ee9a751d8c743e4ea6a Mon Sep 17 00:00:00 2001 From: Tatsuro Furusawa Date: Wed, 6 Jul 2022 17:21:00 +0900 Subject: [PATCH] add aws and go config --- runcoms/zshrc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/runcoms/zshrc b/runcoms/zshrc index eaba323a..85a3e520 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -27,12 +27,18 @@ if command -v pyenv > /dev/null 2>&1; then eval "$(pyenv init --path)" fi +if command -v aws > /dev/null 2>&1; then + complete -C '/usr/local/bin/aws_completer' aws +fi + export PATH=$PATH:~/bin -GOPATH=$(go env GOPATH) -export PATH=$GOPATH/bin:$PATH -export GOPATH=$GOPATH -export GO111MODULE="on" +if command -v go > /dev/null 2>&1; then + GOPATH=$(go env GOPATH) + export PATH=$GOPATH/bin:$PATH + export GOPATH=$GOPATH + export GO111MODULE="on" +fi # ヒストリに追加されるコマンド行が古いものと同じなら古いものを削除 setopt hist_ignore_all_dups @@ -91,6 +97,8 @@ if ! ssh-add -l > /dev/null 2>&1; then ssh-add --apple-use-keychain fi +autoload bashcompinit && bashcompinit + # load local settings LOCAL_FILE="${HOME}/.zshrc.local" if [ -e $LOCAL_FILE ]; then