diff options
Diffstat (limited to '')
| -rw-r--r-- | dot_config/private_fish/functions/dot_.fish | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dot_config/private_fish/functions/dot_.fish b/dot_config/private_fish/functions/dot_.fish new file mode 100644 index 0000000..93aca5a --- /dev/null +++ b/dot_config/private_fish/functions/dot_.fish @@ -0,0 +1,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 |
