mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
fix: Fixes find latest function.
This commit is contained in:
@@ -3,5 +3,5 @@
|
|||||||
# Find the last modified file in a directory.
|
# Find the last modified file in a directory.
|
||||||
function find-latest() {
|
function find-latest() {
|
||||||
local dir=$1
|
local dir=$1
|
||||||
echo "$(find $dir -maxdepth 1 -mindepth 1 -type f -ctime 30 | sort -nr | head -1)"
|
echo "$(find $dir -maxdepth 1 -mindepth 1 -type f | sort -nr | head -1)"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user