X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Flib%2Flogin_functions.sh;h=c393938ccdbf784c6077b294e453a71e6d517eb5;hb=23b95bef1f6db2e4c153e41a75a016d1e5f88fd8;hp=cbd8236a5ed46589ed29b9fe63b38bf885c0dab7;hpb=a76a676bc46f68400348e64a549f01a79eac7292;p=khome.git diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index cbd8236..c393938 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -1,4 +1,4 @@ -# +#! /bin/bash ## open : string -> unit ## @@ -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() {