aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/functions/fish_open_override.fish
blob: 1e5e58fa30c623e890b4771fe71eb91a6b7863e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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