From 7af085ce08db7351873b2abd3f7006c4a1105401 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Wed, 19 Apr 2023 12:18:33 -0400 Subject: [PATCH] New adhoc download directory helper --- home/lib/login_functions.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index cbd8236..2897286 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -96,6 +96,16 @@ p() { | xsel -i -b -t 30000 } +dl() { + local -r timestamp="$(date --iso-8601=ns)" + local -r dir="$HOME"/dl/adhoc/"$timestamp" + local -r url_file_path="${dir}/url" + + mkdir -p "$dir" + touch "$url_file_path" + cd "$dir" +} + ## web search ## ws : string -> unit ws() { -- 2.20.1