mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
8 lines
175 B
Bash
Executable File
8 lines
175 B
Bash
Executable File
#!/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 | sort -nr | head -1)"
|
|
}
|