From 7f9f699cd71e06d7614ac947b4bdfccebed29360 Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Sun, 10 Apr 2022 20:19:16 -0400 Subject: this is cursed and I am not sorry --- dot_config/private_fish/functions/dot_.fish | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 dot_config/private_fish/functions/dot_.fish (limited to 'dot_config') 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 -- cgit v1.2.3