diff --git a/zsh/config/functions/find-latest b/zsh/config/functions/find-latest index 0395e59..470d9ec 100755 --- a/zsh/config/functions/find-latest +++ b/zsh/config/functions/find-latest @@ -3,5 +3,5 @@ # 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)" + echo "$(find $dir -maxdepth 1 -mindepth 1 -type f | sort -nr | head -1)" }