-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzshrc.mac
More file actions
31 lines (22 loc) · 1.19 KB
/
zshrc.mac
File metadata and controls
31 lines (22 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# https://stackoverflow.com/a/12403798/
bindkey "^[[1;3D" backward-word
bindkey "^[[1;3C" forward-word
autoload -U add-zsh-hook
eval "$(brew shellenv)"
fpath=($HOMEBREW_PREFIX/share/zsh/site-functions $fpath)
source ~/.config/op/plugins.sh
# Cache op completions to avoid triggering 1Password popup on every shell start
if [[ ! -f ~/.cache/op-completion.zsh ]] || [[ $(stat -f %m /opt/homebrew/bin/op) -gt $(stat -f %m ~/.cache/op-completion.zsh) ]]; then
mkdir -p ~/.cache
op completion zsh > ~/.cache/op-completion.zsh
fi
source ~/.cache/op-completion.zsh; compdef _op op
eval "$(mise activate zsh)"
eval "$(mise completion zsh)"
fpath+=(~/.config/hcloud/completion/zsh)
# Automatically installed by iterm2 into .zshrc
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" || true
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/Craig/tools/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/Craig/tools/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/Craig/tools/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/Craig/tools/google-cloud-sdk/completion.zsh.inc'; fi