-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# enable tab completion system | ||
# © 2016 Paul Seyfert and contributors (see also: LICENSE) | ||
autoload -U compinit | ||
compinit -C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
autoload compinit | ||
compinit -C | ||
|
||
# 'ctrl-x r' will complete the 12 last modified (mtime) files/directories | ||
zle -C newest-files complete-word _generic | ||
bindkey '^Xr' newest-files | ||
zstyle ':completion:newest-files:*' completer _files | ||
zstyle ':completion:newest-files:*' file-patterns '*~.*(omN[1,12])' | ||
zstyle ':completion:newest-files:*' menu select yes | ||
zstyle ':completion:newest-files:*' sort false | ||
zstyle ':completion:newest-files:*' matcher-list 'b:=*' # important | ||
# © 2018 Michael Stapelberg and contributors (see also: LICENSE) | ||
|
||
# only add this completion if compinit has been called | ||
if [[ -v _comps ]] | ||
then | ||
# 'ctrl-x r' will complete the 12 last modified (mtime) files/directories | ||
zle -C newest-files complete-word _generic | ||
bindkey '^Xr' newest-files | ||
zstyle ':completion:newest-files:*' completer _files | ||
zstyle ':completion:newest-files:*' file-patterns '*~.*(omN[1,12])' | ||
zstyle ':completion:newest-files:*' menu select yes | ||
zstyle ':completion:newest-files:*' sort false | ||
zstyle ':completion:newest-files:*' matcher-list 'b:=*' # important | ||
fi |