some fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user