forked from krmbzds/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
72 lines (61 loc) · 1.4 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
# Hello
function path {
if [[ -d "$1" ]] ; then
if [[ -z "$PATH" ]] ; then
export PATH=$1
else
export PATH=$PATH:$1
fi
fi
}
export PATH=''
path ~/.homebrew/sbin
path ~/.homebrew/bin
path /usr/local/sbin
path /usr/local/bin
path /usr/sbin
path /usr/bin
path /sbin
path /bin
# Locale settings
export LANG=en_US.UTF-8
export LC_ALL=$LANG
export LC_CTYPE=$LANG
# User preferences
export PAGER=less
export EDITOR=vim
export VISUAL=subl
# Shell history settings
HISTFILE=~/.zsh_history
HISTSIZE=9999
SAVEHIST=$HISTSIZE
# Zsh plugin management
source ~/.antigen.zsh
antigen use oh-my-zsh
antigen bundle brew
antigen bundle brew-cask
antigen bundle gem
antigen bundle git
antigen bundle git-flow-avh
antigen bundle gpg-agent
antigen bundle osx
antigen bundle rvm
antigen bundle ssh-agent
antigen bundle vi-mode
antigen bundle zsh-users/zsh-syntax-highlighting
antigen theme robbyrussell
antigen apply
# Make Shift+Tab go back in autocomplete
bindkey '^[[Z' reverse-menu-complete
# Your secure and local home brewery
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_INSECURE_REDIRECT=1
export HOMEBREW_CASK_OPTS=--require-sha
export HOMEBREW_PREFIX=~/.homebrew/
export HOMEBREW_CASK_OPTS="--appdir=~/Applications"
# Replace ssh-agent with gpg-agent
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
# Load RVM *yoicks*
source ~/.rvm/scripts/rvm