From 76fe2f587d68a2b2da5878c4b7265c63da831593 Mon Sep 17 00:00:00 2001 From: winston Date: Wed, 20 Sep 2023 18:46:22 +0200 Subject: [PATCH] fix(sh): `open` on macOS --- home/apps/zsh/functions/open | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/apps/zsh/functions/open b/home/apps/zsh/functions/open index 05ea916..79b8ae8 100644 --- a/home/apps/zsh/functions/open +++ b/home/apps/zsh/functions/open @@ -1,4 +1,7 @@ # vim:ft=zsh +# exit early if we're on macOS +[[ $(uname) == "Darwin" ]] && return + function open() { nohup xdg-open "$*" > /dev/null 2>&1 }