commit 142b91e2f391e1b97e3d46cecc0cf2d6f318c65f parent af761917232853e088fb91dffe8dcec6287b207b Author: William Casarin <jb55@jb55.com> Date: Thu, 15 Apr 2021 17:54:08 -0700 open-dl: customize depth Diffstat:
M | bin/open-dl | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/open-dl b/bin/open-dl @@ -3,8 +3,9 @@ set -e cd "${1:-$HOME/Downloads}" +max_depth=${3:-1} -out=$(find . -maxdepth 1 -name "*.${2:-pdf}" -type f -printf "%T@ %Tc %p\n" \ +out=$(find . -maxdepth $max_depth -name "*.${2:-pdf}" -type f -printf "%T@ %Tc %p\n" \ | sort -nr \ | cut -f2- -d" " \ | dmenu -p docs -l 30 \