Merge pull request #3 from furusax0621/update-zshrc

Update zshrc
This commit is contained in:
Tatsuro Furusawa 2022-07-06 17:53:34 +09:00 committed by GitHub
commit 5586acfa1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,27 +12,33 @@ fi
# Customize to your needs... # Customize to your needs...
if command -v direnv > /dev/null 2>&1; then if command -v direnv > /dev/null 2>&1; then
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
fi fi
if command -v nodenv > /dev/null 2>&1; then if command -v nodenv > /dev/null 2>&1; then
eval "$(nodenv init -)" eval "$(nodenv init -)"
fi fi
if command -v rbenv > /dev/null 2>&1; then if command -v rbenv > /dev/null 2>&1; then
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi
if command -v pyenv > /dev/null 2>&1; then if command -v pyenv > /dev/null 2>&1; then
eval "$(pyenv init --path)" eval "$(pyenv init --path)"
fi
if command -v aws > /dev/null 2>&1; then
complete -C '/usr/local/bin/aws_completer' aws
fi fi
export PATH=$PATH:~/bin export PATH=$PATH:~/bin
GOPATH=$(go env GOPATH) if command -v go > /dev/null 2>&1; then
export PATH=$GOPATH/bin:$PATH GOPATH=$(go env GOPATH)
export GOPATH=$GOPATH export PATH=$GOPATH/bin:$PATH
export GO111MODULE="on" export GOPATH=$GOPATH
export GO111MODULE="on"
fi
# ヒストリに追加されるコマンド行が古いものと同じなら古いものを削除 # ヒストリに追加されるコマンド行が古いものと同じなら古いものを削除
setopt hist_ignore_all_dups setopt hist_ignore_all_dups
@ -91,6 +97,8 @@ if ! ssh-add -l > /dev/null 2>&1; then
ssh-add --apple-use-keychain ssh-add --apple-use-keychain
fi fi
autoload bashcompinit && bashcompinit
# load local settings # load local settings
LOCAL_FILE="${HOME}/.zshrc.local" LOCAL_FILE="${HOME}/.zshrc.local"
if [ -e $LOCAL_FILE ]; then if [ -e $LOCAL_FILE ]; then