New adhoc download directory helper
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 19 Apr 2023 16:18:33 +0000 (12:18 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 19 Apr 2023 16:18:33 +0000 (12:18 -0400)
home/lib/login_functions.sh

index cbd8236..2897286 100644 (file)
@@ -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() {
This page took 0.023895 seconds and 4 git commands to generate.