diff --git a/bin/open-url-with-delay b/bin/open-url similarity index 66% rename from bin/open-url-with-delay rename to bin/open-url index 2eb490d..1a766ab 100755 --- a/bin/open-url-with-delay +++ b/bin/open-url @@ -1,18 +1,16 @@ #!/usr/bin/env bash -open-url-with-delay(){ +open-url(){ if [[ -z "$1" ]]; then echo '$1 is empty.' exit fi local browser_open=${BROWSER_OPEN:=True} - local seconds=${2:-2} if [[ $browser_open == 'True' ]]; then - sleep "$seconds" open-with-os "$1" fi } -ouwd() { - open-url-with-delay "$@" +ou() { + open-url "$@" } diff --git a/install b/install index 341d02c..780089e 100755 --- a/install +++ b/install @@ -46,7 +46,7 @@ scripts=( log-warning ls-git-folder merge-git-remote - open-url-with-delay + open-url open-with-os pull-all-repos pull-git-folder diff --git a/library.md b/library.md index f7fedf6..4e9d1d1 100644 --- a/library.md +++ b/library.md @@ -94,10 +94,10 @@ rows+=("template-dotenv||Generate .env from .env.template.") rows+=("open-with-os||Open file or url with default application.") ``` -### open-url-with-delay +### open-url ```bash -rows+=("open-url-with-delay|[url][delay]|Open url after n seconds.") +rows+=("open-url|[url]|Open url.") ``` ### show-dotenv-setup diff --git a/task.template b/task.template index 261054d..9d1361f 100755 --- a/task.template +++ b/task.template @@ -12,7 +12,7 @@ help-table() { rows+=("init-dotenv-dir||Setup task dotenv dir.") rows+=("template-dotenv||Generate .env from .env.template.") rows+=("open-with-os||Open file or url with default application.") - rows+=("open-url-with-delay|[url][delay]|Open url after n seconds.") + rows+=("open-url|[url]|Open url.") rows+=("show-dotenv-setup||Show info about the dotenv setup.") rows+=("setup-completion|[shell]|Show shell completion instructions.") rows+=("list-taskfile-aliases||List all library command aliases.")