-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc.linux
54 lines (43 loc) · 1.7 KB
/
.zshrc.linux
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
alias amazeballs="cowsay -n | lolcatjs"
# Kubernetes settings {{{
# Alias so I only have to type k for the kubectl command and shorten other kubernetes tool commands
alias k="kubectl "
alias kb="kubens "
alias kc="kubectx "
kb dev-quoll
# Set the kubectl standard editor
export KUBE_EDITOR="vim"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/zac.braddy/google-cloud-sdk/path.zsh.inc' ]; then source '/Users/zac.braddy/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/zac.braddy/google-cloud-sdk/completion.zsh.inc' ]; then source '/Users/zac.braddy/google-cloud-sdk/completion.zsh.inc'; fi
# }}}
# Node settings {{{
# Setting up global yarn folder in Path
export PATH="/usr/local/opt/node@8/bin:$PATH"
# }}}
# Settings to make autocompletion in kubectx work {{{
unsetopt correct_all
setopt correct
autoload -U compinit && compinit
# }}}
# NPM global install settings {{{
mkdir -p $HOME/.npm_packages
NPM_PACKAGES=$HOME/.npm_packages
if [ ! -f ~/.npmrc ]; then
echo "prefix = $NPM_PACKAGES" > ~/.npmrc
fi
# Tell our environment about user-installed node tools
PATH="$NPM_PACKAGES/bin:$PATH"
# Unset manpath so we can inherit from /etc/manpath via the `manpath` command
unset MANPATH # delete if you already modified MANPATH elsewhere in your configuration
MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
# Tell Node about these packages
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
# }}}
# Shortcut to start openvpn {{{
alias startvpn="sudo openvpn --config ~/client.ovpn"
# }}}
# Make spotify big {{{
alias spotify="/snap/bin/spotify --force-device-scale-factor=2"
# }}}