-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
87 lines (64 loc) · 2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="bureau"
# Uncomment the following line to use case-sensitive completion.
CASE_SENSITIVE="true"
plugins=(git pass gem history history-substring-search brew common-aliases rails)
# Load if exists
test -e $ZSH/oh-my-zsh.sh && source $ZSH/oh-my-zsh.sh
# User configuration
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/bin"
export EDITOR='vim'
export SHELL=$(which zsh)
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
bindkey "[D" backward-word
bindkey "[C" forward-word
# support colors in less
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
precmd() { tableflip; }
tableflip() {
if [ $? -ne 0 ]; then
echo "(╯°□°)╯︵ ┻━┻\n"
fi
}
export JAVA_HOME=/usr/bin/java
export PATH=$JAVA_HOME/bin:$PATH
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$(go env GOPATH)/bin
export PATH=$PATH:/snap/bin
export PATH=~/.local/bin:$PATH
if command -v kubectl &> /dev/null; then
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
fi
if command -v bat &> /dev/null; then
alias cat='bat'
fi
if command -v rg &> /dev/null; then
alias grep='rg'
fi
if command -v exa &> /dev/null; then
alias ls='exa'
fi
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
source /etc/profile.d/vte.sh
fi
if [ /usr/local/bin/kubectl ]; then source <(kubectl completion zsh); fi
if command -v terraform &> /dev/null; then
alias tf=terraform
alias tfa='terraform apply'
alias tfi='terraform init -upgrade && terraform init'
alias tfp='terraform plan'
fi
# Load specific local configuration, if exist
test -e $HOME/.zshrc.local && source $HOME/.zshrc.local