9 lines
395 B
Fish
9 lines
395 B
Fish
function check_and_source_activate
|
|
if test -f (pwd)/.fish/activate.fish
|
|
echo (set_color green)"Found .fish/activate.fish in current directory, sourcing..."(set_color normal)
|
|
source (pwd)/.fish/activate.fish
|
|
else if test -f (pwd)/activate.fish
|
|
echo (set_color green)"Found activate.fish in current directory, sourcing..."(set_color normal)
|
|
source (pwd)/activate.fish
|
|
end
|
|
end |