-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zplugrc
101 lines (74 loc) · 2.35 KB
/
.zplugrc
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
# Config for zplug
# https://github.com/zplug/zplug
export ZPLUG_HOME="${HOME}/.zplug"
source "${ZPLUG_HOME}/init.zsh"
# zplug self-management
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
# theme
zplug 'romkatv/powerlevel10k', \
from:github, \
as:theme, \
depth:1
# autosuggest
ZSH_AUTOSUGGEST_USE_ASYNC=1
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#888888'
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
zplug 'zsh-users/zsh-autosuggestions'
# completions
zplug 'zsh-users/zsh-completions', lazy:true
zplug "$(brew --prefix)/opt/curl/share/zsh/site-functions", from:local, lazy:true
# vi mode
zplug 'plugins/vi-mode', from:'oh-my-zsh', \
hook-load:'unset RPS1 MODE_INDICATOR' # Prevent the plugin from adding the right prompt
# substring history search
function setup_history_substring_bindings {
# up/down arrow keys
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# j/k in vim-mode
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# cleanup
unset setup_history_substring_bindings
}
zplug 'zsh-users/zsh-history-substring-search', \
hook-load:'setup_history_substring_bindings'
zplug 'changyuheng/fz', defer:1
zplug 'rupa/z', use:'z.sh'
zplug 'changyuheng/zsh-interactive-cd'
# git-fuzzy
# https://github.com/bigH/git-fuzzy
zplug 'bigH/git-fuzzy', as:command, use:'bin/git-fuzzy'
# oh-my-zsh plugins
zplug 'plugins/aws', from:'oh-my-zsh'
zplug 'plugins/cp', from:'oh-my-zsh'
zplug 'plugins/docker', from:'oh-my-zsh'
zplug 'plugins/docker-compose', from:'oh-my-zsh'
zplug 'plugins/httpie', from:'oh-my-zsh'
zplug 'plugins/git', from:'oh-my-zsh'
zplug 'plugins/git-extras', from:'oh-my-zsh'
zplug 'plugins/github', from:'oh-my-zsh'
zplug 'plugins/osx', from:'oh-my-zsh'
zplug 'plugins/pip', from:'oh-my-zsh', defer:1
zplug 'plugins/zsh_reload', from:'oh-my-zsh'
zplug 'plugins/zsh-nvm', from:'oh-my-zsh'
##
# Setup and fix forgit environment
##
FORGIT_NO_ALIASES=1
FORGIT_FZF_DEFAULT_OPTS="--layout=reverse"
zplug 'wfxr/forgit', defer:1, hook-load:'unset FORGIT_NO_ALIASES; autoload forgit'
###
# NOTE: Temporarily disabled! You must manually call `zplug install`!
###
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
else
echo
fi
fi
zplug load
# vim: set ft=zsh: