From: Siraaj Khandkar Date: Wed, 19 Apr 2023 16:18:33 +0000 (-0400) Subject: New adhoc download directory helper X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=7af085ce08db7351873b2abd3f7006c4a1105401;p=khome.git New adhoc download directory helper --- 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() {