-
Notifications
You must be signed in to change notification settings - Fork 12
/
zshrc
60 lines (51 loc) · 1.49 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
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Load base16-shell
export BASE16_THEME="tomorrow-night"
export BASE16_FZF_PATH="$HOME/.colours/base16-fzf"
BASE16_SHELL_PATH="$HOME/.colours/base16-shell"
[ -n "$PS1" ] && \
[ -s "$BASE16_SHELL_PATH/profile_helper.sh" ] && \
source "$BASE16_SHELL_PATH/profile_helper.sh"
# Load direnv
if which direnv > /dev/null; then eval "$(direnv hook zsh)"; fi
# Load asdf
if which brew > /dev/null; then
. /opt/homebrew/opt/asdf/libexec/asdf.sh
else
if [[ -s "$HOME/.asdf/asdf.sh" ]]; then
. $HOME/.asdf/asdf.sh
fi
fi
# Google Cloud SDK
if (( $+commands[brew] )); then
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
source "$HOMEBREW_PREFIX/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
source "$HOMEBREW_PREFIX/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
# Load homebrew completions
fpath=($fpath $HOMEBREW_PREFIX/share/zsh/site-functions)
fi
# Shellfish app onfig
test -e "$HOME/.shellfishrc" && source "$HOME/.shellfishrc"
alias a='tmux attach -t'
alias g='git'
alias v='nvim'
alias vim='nvim'
alias n='nvim'
alias t='tmux'
alias c='cd'
alias s='spring'
alias be='bundle exec'
alias gt='go test -v -cover $(go list ./... | grep -v vendor)'
alias mux='tmuxinator'
alias tf='terraform'
alias k='kubectl'
alias kx='kubectx'