feat: Adds find-latest function to zsh, 'fl' alias for it, lazyvim config changes.

This commit is contained in:
2025-04-03 08:50:04 -04:00
parent 3fd33cd92e
commit 547cc41436
6 changed files with 43 additions and 19 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/zsh
# Find the last modified file in a directory.
function find-latest() {
local dir=$1
echo "$(find $dir -maxdepth 1 -mindepth 1 -type f -ctime 30 | sort -nr | head -1)"
}