-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzshrc
44 lines (35 loc) · 833 Bytes
/
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
if [[ -n $DEBUG_STARTUP_TIME ]]; then
# Run zprof to profile startup time
zmodload zsh/zprof
fi
# use .localrc for settings specific to one system
[[ -f ~/.localrc ]] && . ~/.localrc
# Source shell-agnostic config files
for file in $HOME/.shrc/*; do
if [[ -f "$file" ]]; then
source "$file"
fi
done
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
# Source zsh-specific files
for file in $HOME/.zsh/*; do
if [[ -f "$file" ]]; then
source "$file"
fi
done
alias d="z dotfiles && t"
if [ $commands[kubectl] ]; then
source <(kubectl completion zsh)
zstyle ':completion:*:*:kubectl:*' list-grouped false
fi
if [ $commands[kn] ]; then
source <(kn completion zsh)
fi
if [ -f $HOME/.local.sh ]; then
source $HOME/.local.sh
fi
if [[ -n $DEBUG_STARTUP_TIME ]]; then
zprof
fi