diff options
| -rw-r--r-- | .config/fish/functions/fish_open_override.fish | 19 |
1 files changed, 19 insertions, 0 deletions
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 |
