-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc.oh-my-zshrc
83 lines (63 loc) · 1.86 KB
/
.zshrc.oh-my-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
#
# Sets Oh My Zsh options.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
# Set the path to Oh My Zsh.
export OMZ="$HOME/.zprezto"
# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':omz:module:editor' keymap 'emacs'
# Auto convert .... to ../..
zstyle ':omz:module:editor' dot-expansion 'no'
# Set case-sensitivity for completion, history lookup, etc.
zstyle ':omz:*:*' case-sensitive 'no'
# Color output (auto set to 'no' on dumb terminals).
zstyle ':omz:*:*' color 'yes'
### Highlighting
zstyle ':omz:module:syntax-highlighting' color 'yes'
### Highlighters
zstyle ':omz:module:syntax-highlighting' highlighters \
'main' \
'brackets' \
'pattern' \
'cursor' \
'root'
# Auto set the tab and window titles.
zstyle ':omz:module:terminal' auto-title 'yes'
# Set the Zsh modules to load (man zshmodules).
# zstyle ':omz:load' zmodule 'attr' 'stat'
# Set the Zsh functions to load (man zshcontrib).
# zstyle ':omz:load' zfunction 'zargs' 'zmv'
# Set the Oh My Zsh modules to load (browse modules).
# The order matters.
zstyle ':omz:load' omodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
'spectrum' \
'completion' \
'tmux' \
'utility' \
'history-substring-search' \
'ruby' \
'command-not-found' \
'git' \
'syntax-highlighting' \
'prompt'
# Set the prompt theme to load.
# Setting it to 'random' loads a random theme.
# Auto set to 'off' on dumb terminals.
zstyle ':omz:module:prompt' theme 'steeef'
# This will make you shout: OH MY ZSHELL!
source "$OMZ/init.zsh"
# Share history between sessions
setopt append_history share_history histignorealldups
# Add additional completion which will always complete files
zle -C complete complete-word complete-files
bindkey '^X\t' complete
complete-files () { compadd - $PREFIX* }
# Customize to your needs...
[ -f ~/.zshrc.local ] && source ~/.zshrc.local