Skip to main content

Log the version of Python used in the venv

ID
5b0e65d
date
2025-05-20 05:42:08+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
5bb5da1
message
Log the version of Python used in the venv
changed files
1 file, 1 addition

Changed files

fish_functions/venv.fish (1451) → fish_functions/venv.fish (1495)

diff --git a/fish_functions/venv.fish b/fish_functions/venv.fish
index fe5c809..6bf454a 100644
--- a/fish_functions/venv.fish
+++ b/fish_functions/venv.fish
@@ -26,6 +26,7 @@ function venv --description "Create and activate a new virtual environment"
     print_info "Creating virtual environment in "(pwd)"/.venv"
     uv venv --quiet .venv
     source .venv/bin/activate.fish
+    print_info "Using: "(python3 --version)
 
     # Append .venv to the Git exclude file, but only if it's not
     # already there.