-
Notifications
You must be signed in to change notification settings - Fork 8
/
.zshenv
96 lines (92 loc) · 2.33 KB
/
.zshenv
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
# straight from https://github.com/chorn/dotfiles
#-----------------------------------------------------------------------------
typeset -g HISTFILE="$HOME/.zsh_history"
typeset -g SAVEHIST=99999999999
typeset -g WORDCHARS='*?_-.[]~&;!#$%^(){}<>'
# skip_global_compinit=1
typeset -g PROMPT='%f%b%k%u%s%n@%m %~ %(!.#.$)%f%b%k%u%s '
typeset -g RPROMPT=''
#-----------------------------------------------------------------------------
zmodload zsh/compctl \
zsh/complete \
zsh/complist \
zsh/datetime \
zsh/main \
zsh/parameter \
zsh/terminfo \
zsh/zle \
zsh/zleparameter \
zsh/zutil
#-----------------------------------------------------------------------------
setopt \
always_to_end \
auto_cd \
auto_list \
auto_menu \
auto_param_slash \
brace_ccl \
case_glob \
cdable_vars \
check_jobs \
clobber \
combining_chars \
complete_in_word \
emacs \
extended_glob \
hash_list_all \
interactive_comments \
list_ambiguous \
list_packed \
list_types \
long_list_jobs \
multios \
path_dirs \
posix_builtins \
prompt_subst
unsetopt \
auto_resume \
beep \
bg_nice \
correct \
correct_all \
flow_control \
hup \
list_beep \
mail_warning \
menu_complete \
notify
# History
setopt \
append_history \
bang_hist \
extended_history \
hist_allow_clobber \
hist_fcntl_lock \
hist_find_no_dups \
hist_ignore_space \
hist_no_store \
hist_reduce_blanks \
hist_verify \
share_history
unsetopt \
hist_ignore_all_dups \
inc_append_history \
inc_append_history_time
#-----------------------------------------------------------------------------
fpath=(~/.config/zsh/site-functions /usr/local/share/zsh-completions $fpath)
#-----------------------------------------------------------------------------
# typeset -g _debug_times
# typeset -F SECONDS
#
# function debug_timer() {
# [[ -z "$_debug_times" ]] && return
# local _what="$1"
# local _start="$2"
# print -f "%d %2.3f %s\n" $$ $(( SECONDS - _start )) "$_what" >> ~/zsh_debug_timer
# }
#-----------------------------------------------------------------------------
for s in ~/.shell-path ~/.shell-env ; do
[[ -f "$s" ]] && source "$s"
done
#-----------------------------------------------------------------------------
# vim: set syntax=zsh ft=zsh sw=2 ts=2 expandtab: