Mercurial > dotfiles
comparison dot_zshrc @ 544:c071fc2dc6fc
Run compinit after loading all plugins and functions
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 30 Jan 2022 10:40:00 +0100 |
parents | 89769aa79628 |
children | 06df3dcf5d96 |
comparison
equal
deleted
inserted
replaced
543:15d6c097f1c9 | 544:c071fc2dc6fc |
---|---|
188 | 188 |
189 # nvim completion | 189 # nvim completion |
190 zstyle ':completion:*:*:nvim:*' ignored-patterns '*.(o|hex|elf|pyc|pdf|dup)' | 190 zstyle ':completion:*:*:nvim:*' ignored-patterns '*.(o|hex|elf|pyc|pdf|dup)' |
191 zstyle ':completion:*:*:nvim:*' file-sort modification | 191 zstyle ':completion:*:*:nvim:*' file-sort modification |
192 | 192 |
193 autoload -U compinit && compinit | |
194 | |
195 # fg when pressing Ctrl+Z | 193 # fg when pressing Ctrl+Z |
196 function fancy-ctrl-z () { | 194 function fancy-ctrl-z () { |
197 if [[ $#BUFFER -eq 0 ]]; then | 195 if [[ $#BUFFER -eq 0 ]]; then |
198 if [[ $(jobs | wc -l) -gt 0 ]]; then | 196 if [[ $(jobs | wc -l) -gt 0 ]]; then |
199 BUFFER='fg' | 197 BUFFER='fg' |
267 group by commands.argv order by count(*) desc limit 1" | 265 group by commands.argv order by count(*) desc limit 1" |
268 suggestion=$(_histdb_query "$query") | 266 suggestion=$(_histdb_query "$query") |
269 } | 267 } |
270 | 268 |
271 ZSH_AUTOSUGGEST_STRATEGY=histdb_top_here | 269 ZSH_AUTOSUGGEST_STRATEGY=histdb_top_here |
270 | |
271 autoload -U compinit && compinit |