Skip to content

Commit

Permalink
ignore *.zwc files when completing arguments of file editors and viewers
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Jul 6, 2020
1 parent ac8b8e2 commit b4c7e6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fn/-z4h-init
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,11 @@ function -z4h-post-init() {

add-zsh-hook -d -- precmd -z4h-post-init

local -aU editors=(
vi vim nvim emacs nano gedit code kak kate mcedit joe $EDITOR $VISUAL
cat less more $PAGER)
zstyle ':completion:*:*:('${(j:|:)editors}'):*:*' ignored-patterns '*.zwc'

# Initialize completions.
if zstyle -t ':completion::complete:' use-cache; then
local cache
Expand Down

0 comments on commit b4c7e6d

Please sign in to comment.