Is there any way to change name, that is shown in prompt, while virtualenv activated?
username@host:~$ python3 -m venv venv
username@host:~$ source venv/bin/activate
(venv) username@host:~$
But i need it to be shown as something like this:
username@host:~$ python3 -m venv venv
username@host:~$ source venv/bin/activate
(some_arbitrary_name) username@host:~$
python3 -m venv .venv --prompt some_arbitrary_name
solution as an actual answer. None of the existing answers (as of when I'm writing this) mention it, and some readers on this site will jump straight to looking at the answers as soon as they believe the question to be the same as what they're trying to do, and thus might miss your update. (Also, you'll be able to get more reputation on the site, if you care about that.) I happily pledge an upvote on any answer submission from you that closely mirrors your update text. – Eastertide--prompt
option works great, thank you! – Fontesprompt
option inpyvenv.cfg
file, you could try changing it. – Fontes