refactor: rename open-url-with-delay to open-url and remove delay logic
This commit is contained in:
4 files changed
+7
-9
No files matched your search
@@ -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 "$@"
|
||||
}
|
||||
Reference in new issue
Block a user