-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc.macos
executable file
·113 lines (82 loc) · 2.26 KB
/
.zshrc.macos
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#redshift-gtk & #done by i3
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_CTYPE=C
PATH=$PATH:~/.cabal/bin:~/misc/dotfiles/bin:~/misc/Jobman/bin:/opt/junest/bin
export PATH
#Mac Port
path=(/opt/local/{bin,sbin} $path)
PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages/:~/misc/Jobman/
export PYTHONPATH
TERMINAL=urxvtc
export TERMINAL
export TERM=rxvt
EDITOR=kak
export EDITOR
VISUAL=kak
export VISUAL
#Intel C++ Studio
if [ -d /opt/intel ];
then
export INTEL_HOME=/opt/intel
export PATH=${PATH}:${INTEL_HOME}/bin
export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:/opt/intel/lib/intel64:${LD_LIBRARY_PATH}
fi
# The following lines were added by compinstall
plugins+=(zsh-completions)
plugins+=(zsh-highlighters)
bindkey -v
zmodload zsh/zutil
zmodload zsh/complist
zstyle ':completion:*' menu select
zstyle ':completion:*' completer _expand _complete _ignored
#LS_COLORS='no=00;37:fi=00:di=00;33:ln=04;36:pi=40;33:so=01;35:bd=40;33;01:'
#LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
#export LS_COLORS
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
#zstyle ':completion:*' list-colors 'di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
zstyle :compinstall filename '/home/geier/.zshrc'
autoload -Uz compinit promptinit
autoload -U colors && colors
compinit
promptinit
autoload bashcompinit
bashcompinit
#Prompt
set_prompt () {
PROMPT="%{$fg_bold[white]%}%{$fg_bold[yellow]%}"`date +"%H:%M"`"%{$fg[white]$fg_no_bold[red]%} %c %{$fg_bold[white]%}%# %{$reset_color%}"
}
set_prompt
preexec () {
#set_prompt
timer=$((`date +%s`+`date +%N`/1e9))
}
precmd() {
set_prompt
if [ $timer ]; then
timer_show=$(printf "%0.3f" $((`date +%s`+`date +%N`/1e9-$timer)))
RPROMPT="%F{cyan}${timer_show}%{$reset_color%}"
unset timer
fi
}
#prompt pws
#prompt adam2
#prompt walters
#prompt redhat
#HELP
autoload -U run-help
autoload run-help-git
autoload run-help-svn
autoload run-help-svk
#unalias run-help
alias help=run-help
#ls with color
alias ls='ls -G'
# End of lines added by compinstall
#avoid freezing
ttyctl -f
#Adjust X keyboard rate
xset r rate 200 60
eval "$(pandoc --bash-completion)"
#FASD
eval "$(fasd --init auto)"