Awesome
complete-lastf
A zsh plugin that does filename completion.
For example, it replaces the user's lastf
with the last modified file in the current directory.
Demo
Features
The last file is specifically the last modified file in the current directory.
-
Replace
lastfN
with the last N files.For example,
lastf2
replaces with the last 2 files.If
N
is not provided, like inlastf
, it defaults to 1. -
Replace
lastdN
with the last N directories.
Dependencies
- eza: A modern replacement for
ls
. The-D
option lists only directories, which is difficult withls
.
Installation
-
Clone the repository to
~/.oh-my-zsh/custom/plugins/complete-lastf
. -
Add the following line to your
~/.zshrc
:plugins=(... complete-lastf)