Skip to content

Commit

Permalink
zsh: add most-recent-file completion
Browse files Browse the repository at this point in the history
  • Loading branch information
majutsushi committed Jan 27, 2015
1 parent 37ffaf3 commit 64c8b72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zsh/zsh/zshrc.d/20_completion
Expand Up @@ -232,6 +232,13 @@ zstyle ':completion:current-screen-words-(prefix|anywhere):*' completer _tmux_pa
zstyle ':completion:current-screen-words-(prefix|anywhere):*' ignore-line current
zstyle ':completion:current-screen-words-anywhere:*' matcher-list 'b:=* m:{A-Za-z}={a-zA-Z}'

# modified from http://www.zsh.org/mla/users/2015/msg00081.html
zstyle ':completion:most-recent-file:*' file-sort modification
zstyle ':completion:most-recent-file:*' file-patterns '%p:all-files'
zstyle ':completion:most-recent-file:*' completer _files
zle -C most-recent-file menu-complete _generic
bindkey "^X^N" most-recent-file

zle -C extpwds menu-complete _generic
bindkey "^X^T" extpwds
zstyle ':completion:extpwds::::' completer _extpwds
Expand Down

0 comments on commit 64c8b72

Please sign in to comment.