-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
60 lines (48 loc) · 1.39 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
if [ ! -d ${HOME}/.zgen ]
then
git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
fi
# load zgen
source "${HOME}/.zgen/zgen.zsh"
# if the init scipt doesn't exist
if ! zgen saved; then
zgen oh-my-zsh
zgen oh-my-zsh plugins/brew
zgen oh-my-zsh plugins/colored-man-pages
zgen oh-my-zsh plugins/colorize
zgen oh-my-zsh plugins/encode64
zgen oh-my-zsh plugins/extract
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/git-extras
zgen oh-my-zsh plugins/iterm2
zgen oh-my-zsh plugins/jsontools
zgen oh-my-zsh plugins/sudo
zgen oh-my-zsh plugins/svn
zgen oh-my-zsh plugins/svn-fast-info
# zgen oh-my-zsh plugins/aws
# zgen oh-my-zsh plugins/helm
# zgen oh-my-zsh plugins/kops
# zgen oh-my-zsh plugins/kubectl
# zgen oh-my-zsh plugins/mvn
# zgen load AlanSherman/zsh-distroalias
zgen load zsh-users/zsh-syntax-highlighting
zgen load zsh-users/zsh-history-substring-search
zgen load zsh-users/zsh-autosuggestions
zgen oh-my-zsh themes/blinks
# generate the init script from plugins above
zgen save
fi
# Set editor as vim
export EDITOR="/usr/bin/vim"
export TERM=xterm-256color
# Add alias
source ~/.alias
# Fix PATH
export PATH="/usr/local/bin:/usr/local/sbin:$HOME/bin:$PATH"
chpwd_auto_ls () {
ls -HG
}
add-zsh-hook chpwd chpwd_auto_ls
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent