summaryrefslogtreecommitdiff
path: root/dot_config/private_fish/functions/dot_.fish
blob: 93aca5aae3f5d9eabeaa03ad09d6d344fd03b255 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
function . -a name
    if ! test -n "$name"; return 255; end
    set -e argv[1]
    for path in . $PATH
        if test -r $path/$name.fish
            source $path/$name.fish $argv
            return
        else if test -r $path/$name
            source $path/$name $argv
            return
        end
    end
end