Update 2026-03-17

This commit is contained in:
2026-03-17 17:34:19 +02:00
parent 75f8df8582
commit cb8439c964
4 changed files with 24 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
function __auto_vent --on-variable PWD
if test -f "$PWD/.venv/bin/activate.fish"
source "$PWD/.venv/bin/activate.fish"
return
end
if set -q VIRTUAL_ENV
set -l project_dir (path dirname $VIRTUAL_ENV)
if not string match -q "$project_dir" "$PWD" and not string match -q "$project_dir/*" "$PWD"
deactivate 2>/dev/null
end
end
end

View File

@@ -0,0 +1,5 @@
function __last_history_item
echo $history[1]
end
abbr --add !! --position anywhere --function __last_history_item