some fixes

This commit is contained in:
Hannes
2026-05-11 23:39:20 +02:00
parent 95cf86ae5f
commit d02587437d
8 changed files with 98 additions and 10 deletions
+28
View File
@@ -100,6 +100,34 @@ function mkvenv
end
end
function src
# Check if venv directory exists
if not test -d .venv
echo "Cannot activate: .venv directory does not exist."
return 1
end
if not test -d .venv/bin
echo "Cannot activate: .venv/bin directory does not exist."
return 1
end
# Prefer Fish activation script
if test -f .venv/bin/activate.fish
source .venv/bin/activate.fish
return 0
end
# Fallback to bash activation via bass
if test -f .venv/bin/activate.bash
bass source .venv/bin/activate.bash
return 0
end
echo "No usable activation script found in .venv/bin/"
return 1
end
# Check if eza exists in either location
if test -x /usr/bin/eza -o -x $HOME/.cargo/bin/eza
function ls