| 1234567891011121314151617181920212223242526272829303132333435 |
- # benchmark startup:
- # zmodload zsh/zprof
- # load all files from .shell/zshrc.d directory
- if [ -d $HOME/.zshrc.d ]; then
- for file in $HOME/.zshrc.d/*.zsh; do
- source $file
- done
- fi
- # load all files from .shell/rc.d directory
- if [ -d $HOME/.rc.d ]; then
- for file in $HOME/.rc.d/*.sh; do
- source $file
- done
- fi
- if [[ -n $SSH_CONNECTION ]]; then
- export EDITOR='vim'
- else
- export EDITOR='code --wait'
- fi
- # The next line updates PATH for the Google Cloud SDK.
- if [ -f '/Users/tom/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/tom/google-cloud-sdk/path.zsh.inc'; fi
- # The next line enables shell command completion for gcloud.
- if [ -f '/Users/tom/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/tom/google-cloud-sdk/completion.zsh.inc'; fi
- # zprof
- export NVM_DIR="$HOME/.nvm"
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|