refactor: rename open-url-with-delay to open-url and remove delay logic

This commit is contained in:
Janik von Rotz committed 2026-09-10 13:44:13 +02:00
1 parent 3e31c0ce49
commit baa68aade0
4 files changed
+7 -9

No files matched your search

+3 -5
View File
@@ -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 "$@"
}