about summary refs log tree commit diff
path: root/Completion/Commands/_most_recent_file
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Commands/_most_recent_file')
-rw-r--r--Completion/Commands/_most_recent_file4
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Commands/_most_recent_file b/Completion/Commands/_most_recent_file
new file mode 100644
index 000000000..ff5645de5
--- /dev/null
+++ b/Completion/Commands/_most_recent_file
@@ -0,0 +1,4 @@
+#defkeycomp complete-word \C-xm
+local file
+file=($~PREFIX*$~SUFFIX(om[1]N))
+(( $#file )) && compadd -f $file