From 233063640eccfe59cf86503d4c71d11cfb5e00c0 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Wed, 17 Jul 2024 22:39:50 -0400 Subject: feat: `fish_open_override.fish` --- .config/fish/functions/fish_open_override.fish | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .config/fish/functions/fish_open_override.fish (limited to '.config') diff --git a/.config/fish/functions/fish_open_override.fish b/.config/fish/functions/fish_open_override.fish new file mode 100644 index 0000000..1e5e58f --- /dev/null +++ b/.config/fish/functions/fish_open_override.fish @@ -0,0 +1,19 @@ +function open + if command -v xdg-open > /dev/null + xdg-open $argv + return + end + + if test (uname) = "Darwin" + command open $argv + return + end + + if test (uname) = "Haiku" + command open $argv + return + end + + echo "error: could not detect the open command for your system." + return 1 +end -- cgit v1.2.3