-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
60 lines (45 loc) 路 1.26 KB
/
.zshrc
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
source ~/.common.zshrc
# //
# iTerm2
# //
# add iterm2 integration
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# //
# TMUX
# //
# Do not use autostart, explicitly start/attach session
# https://github.com/syl20bnr/spacemacs/issues/988
ZSH_TMUX_AUTOSTART=false
[[ $TMUX == "" ]] && tmux new-session -A
# //
# // PLUGINS
# //
# MacOS intergration
# > usage:
# - pfd: return the path of the frontmost Finder window
# - pfs: return the current Finder selection
# - cdf: cd to the current Finder directory
# - quick-look: quick-Look a specified file
plugins+=(macos)
# enable notification
[[ $TERM_PROGRAM == "iTerm.app" ]] && plugins+=(notify)
zstyle ':notify:*' error-title "馃敟 Error!!!"
zstyle ':notify:*' success-title "馃帀 Success!!!"
zstyle ':notify:*' activate-terminal yes
# source oh my zsh again for the additional plugins
source $ZSH/oh-my-zsh.sh
# enable credential injection via 1password
source ~/.config/op/plugins.sh || true
# //
# SSH
# //
export SSH_KEY_PATH="~/.ssh/id_rsa"
# //
# DevOps
# //
command -v flux >/dev/null && . <(flux completion zsh)
# //
# GCP
# //
source "$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc"
source "$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc"