@@ -71,16 +71,12 @@ DISABLE_UNTRACKED_FILES_DIRTY="true"
71
71
ZSH_DISABLE_COMPFIX=true
72
72
73
73
# Plugins
74
- zinit ice as" completion"
75
- zinit snippet https://github.com/docker/cli/blob/master/contrib/completion/zsh/_docker
76
-
77
74
zinit snippet OMZP::git
78
75
zinit snippet OMZP::pyenv
79
76
zinit snippet OMZP::dotenv
80
77
zinit snippet OMZP::sudo
81
78
zinit snippet OMZP::golang
82
79
zinit snippet OMZP::common-aliases
83
- zinit snippet OMZP::pyenv
84
80
85
81
zstyle ' :omz:plugins:nvm' autoload yes
86
82
zstyle ' :omz:plugins:nvm' silent-autoload yes # optionally remove the output generated by NVM when autoloading
@@ -90,12 +86,15 @@ zinit snippet OMZP::colored-man-pages
90
86
zinit snippet OMZP::systemd
91
87
zinit snippet OMZP::themes
92
88
zinit snippet OMZP::perms
89
+ zinit ice atload' [ ! -d $ZSH_CACHE_DIR/completions ] && mkdir $ZSH_CACHE_DIR/completions'
90
+ zinit snippet OMZP::docker
93
91
zinit snippet OMZP::docker-compose
94
92
zinit snippet OMZP::kubectl
95
93
96
94
zinit light zsh-users/zsh-syntax-highlighting
97
95
zinit light zsh-users/zsh-autosuggestions
98
96
zinit light zsh-users/zsh-completions
97
+ zinit light Aloxaf/fzf-tab
99
98
100
99
# #
101
100
# # correct only spelling of commands
@@ -116,6 +115,12 @@ eval "$(starship init zsh)"
116
115
# # custom completions
117
116
# #
118
117
118
+ zstyle ' :completion:*' matcher-list ' m:{a-z}={A-Za-z}'
119
+ zstyle ' :completion:*' list-colors " ${(s.: .)LS_COLORS} "
120
+ zstyle ' :completion:*' menu no
121
+ zstyle ' :fzf-tab:complete:cd:*' fzf-preview ' ls --color $realpath'
122
+ zstyle ' :fzf-tab:complete:__zoxide_z:*' fzf-preview ' ls --color $realpath'
123
+
119
124
if [ -n " $HOMEBREW_PREFIX " ]; then
120
125
fpath=(" $HOMEBREW_PREFIX /share/zsh-completions" $fpath )
121
126
fpath=(" $HOMEBREW_PREFIX /share/zsh/site-functions" $fpath )
@@ -128,9 +133,37 @@ fpath=("$ZSH_COMPLETION_DIR" $fpath)
128
133
129
134
# # TODO: there is an issue https://github.com/zdharma-continuum/zinit/issues/654
130
135
# [ -f "$HOME/.zsh_completion" ] && source "$HOME/.zsh_completion"
131
- # autoload -Uz compinit && compinit -u
136
+ autoload -Uz compinit && compinit -u
137
+ zinit cdreplay -q
138
+
139
+ # #
140
+ # # keybindings
141
+ # #
142
+
143
+ bindkey ' ^p' history-search-backward
144
+ bindkey ' ^n' history-search-forward
145
+
146
+ # #
147
+ # # history
148
+ # #
149
+ HISTSIZE=5000
150
+ HISTFILE=$HOME /.zsh_history
151
+ SAVEHIST=$HISTSIZE
152
+ HISTDUP=erase
153
+ setopt appendhistory
154
+ setopt sharehistory
155
+ setopt hist_ignore_space
156
+ setopt hist_ignore_all_dups
157
+ setopt hist_save_no_dups
158
+ setopt hist_ignore_dups
159
+ setopt hist_find_no_dups
160
+
161
+ # #
162
+ # # shell integrations
163
+ # #
132
164
133
- # zinit cdreplay -q
165
+ source <( fzf --zsh)
166
+ eval " $( zoxide init --cmd cd zsh) "
134
167
135
168
# #
136
169
# # PATH without duplicates
0 commit comments