-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
54 lines (47 loc) · 1.28 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
## oh-my-zsh
export HOME_SYSTEM="temujin.local"
export ZSH=$HOME/.dotfiles/oh-my-zsh
ZSH_THEME="bitserf"
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
plugins=(git zsh-syntax-highlighting)
source ~/.oh-my-zsh/oh-my-zsh.sh
## functions
is_osx() {
if [ "$(uname)" = "Darwin" ]; then
return 0
else
return 1
fi
}
## environment
export EDITOR=vim
export SVN_EDITOR="$EDITOR"
export GIT_EDITOR="$EDITOR"
export VISUAL=$EDITOR
export HISTSIZE=10000
export SAVEHIST=10000
export HISTFILE=~/.zsh_history
export CDPATH=.:$HOME:$HOME/Code
export [email protected]
export PATH=$HOME/.bin:/usr/local/bin:$PATH
export MANPATH="/usr/local/man:$MANPATH"
export CLICOLOR=1
export LSCOLORS=exfxcxdxbxegedabagacad
export GPG_TTY=$(tty)
## aliases
# use ls that is aware of 'hidden' chflags setting on OS X.
is_osx && alias ls='/Users/ljb/.bin/ls -GFh'
alias ledger="ledger -f $HOME/Documents/Ledger/2015.ledger --strict"
alias gpg='gpg2'
alias vi=vim
## zsh options
setopt NO_BEEP
setopt AUTO_PARAM_SLASH
setopt NO_AUTO_MENU
setopt NO_MENU_COMPLETE
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_STYLES[precommand]='fg=green'
ZSH_HIGHLIGHT_STYLES[path]='none'
ZSH_HIGHLIGHT_STYLES[path_prefix]='none'
ZSH_HIGHLIGHT_STYLES[path_approx]='fg=yellow'