A zsh plugin that does filename completion.
For example, it replaces the user's lastf with the last modified file in the current directory.
The last file is specifically the last modified file in the current directory.
-
Replace
lastfNwith the last N files.For example,
lastf2replaces with the last 2 files.If
Nis not provided, like inlastf, it defaults to 1. -
Replace
lastdNwith the last N directories.
-
eza: A modern replacement forls. The-Doption lists only directories, which is difficult withls.Note: This plugin now uses zsh built-in glob patterns instead of external commands for better reliability.
Important: eza version 0.23.0 and later has compatibility issues in certain execution environments (such as zsh widget contexts). This plugin switched to zsh built-in glob patterns to avoid dependency on external commands.
-
Clone the repository to
~/.oh-my-zsh/custom/plugins/complete-lastf. -
Add the following line to your
~/.zshrc:plugins=(... complete-lastf)
