-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathzshrc
executable file
·92 lines (70 loc) · 2.52 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
source $HOME/.termieter/env
export ZSH=$TRM/zsh/oh-my-zsh
# Set custom zsh directory
ZSH_CUSTOM="$TRM/zsh/custom"
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# if [[ $OS == 'OSX' ]] || [[ $OSTYPE == "linux-gnu"* ]]; then
ZSH_THEME="kolo"
# Debian are our servers
if [ -n "$(uname -a | grep Debian)" ]; then
ZSH_THEME="dallas"
fi
# RPI
if [ -n "$(uname -a | grep armv6l)" ] || [ -n "$(uname -a | grep armv7l)" ]; then
ZSH_THEME="alanpeabody"
fi
# RPI or ARM
if [ -n "$(uname -a | grep aarch64)" ]; then
if [ -n "$(cat /proc/device-tree/model | grep -a "Raspberry")" ]; then
ZSH_THEME="alanpeabody"
fi
fi
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# When listing options (by `setopt', `unsetopt', `set -o' or `set +o'),
# those turned on by default appear in the list prefixed with `no'.
# Hence (unless KSH_OPTION_PRINT is set), `setopt' shows all options
# whose settings are changed from the default.
#
# Report the status of background jobs immediately, rather than
# waiting until just before printing a prompt.
setopt notify
# Save timestamp in history
setopt extendedhistory
# Appends every command to the history file once it is executed
setopt inc_append_history
# Reloads the history whenever you use it
setopt share_history
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(history-substring-search colored-man-pages)
if [[ $OS == 'OSX' ]]; then
plugins+=(fzf mix-fast git asdf)
fi
if [ -n "$(uname -a | grep Debian)" ]; then
plugins+=(debian)
fi
# initialize autocomplete here, otherwise functions won't be loaded
autoload -U compinit
compinit
source $TRM/zsh/base.sh
fpath=(/usr/local/share/zsh-completions $fpath)
zstyle ':completion:*' menu yes=long select
zstyle ':completion:*' use-cache yes
zstyle ':completion:*:functions' ignored-patterns '_*'
# Colors for ls and autocompletion
# if [[ $OS == 'OSX' ]]; then
# eval $( gdircolors -b $ZSH/../LS_COLORS )
# else
eval $( dircolors -b $ZSH/../LS_COLORS )
# fi
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
[ -f $HOME/.zshrc.local ] && source $HOME/.zshrc.local
source $ZSH/oh-my-zsh.sh
alias reload!='exec zsh'
alias r!='reload!'
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh