forked from hsab/WSL-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
64 lines (47 loc) · 1.5 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
autoload -Uz compinit
compinit
# General Configs
export TERM="xterm-256color"
source ~/.antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
antigen bundle command-not-found
#antigen bundle compleat
antigen bundle git-extras
antigen bundle git-flow
#antigen bundle npm
#antigen bundle web-search
antigen bundle z
antigen bundle zsh-users/zaw
antigen bundle zsh-users/zsh-syntax-highlighting
#antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-history-substring-search
#antigen theme agnoster
antigen theme bhilburn/powerlevel9k powerlevel9k
antigen apply
# Keybindings
#"^[[A" up-line-or-history
#"^[[B" down-line-or-history
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey '^R' zaw-history
bindkey -M filterselect '^D' zaw-bookmark-add-buffer
#bindkey -M filterselect '^R' down-line-or-history
#bindkey -M filterselect '^S' up-line-or-history
# ZAW UI
zstyle ':filter-select:highlight' matched fg=green
zstyle ':filter-select' max-lines 5
# ZSH Configs
# activate menu selection
zstyle ':completion:*' menu select
zstyle ':bracketed-paste-magic' active-widgets '.self-*'
#Lastly, to prevent duplicate commands in the history file, set histignoredups:
setopt histignoredups
# Set default user
DEFAULT_USER="hirad"
# If you do a 'rm *', Zsh will give you a sanity check!
setopt RM_STAR_WAIT
# Allows you to type Bash style comments on your command line
setopt interactivecomments
# Zsh has a spelling corrector
setopt CORRECT