[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-12-08 Thread Brett Cannon
Brett Cannon added the comment: If it were `.` would we then always check if the prompt was a folder and then use the folder's name in that case? Or would it only apply to `.`? As for `__curdir__`, it could work, but I don't know how easy would that be to remember or explain to new users

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-26 Thread Vinay Sajip
Vinay Sajip added the comment: Since there is already a --prompt available, I'd prefer a solution that allowed some special value(s) to be passed for this, e.g. --prompt . or perhaps --prompt __curdir__ -- ___ Python tracker

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-25 Thread Brett Cannon
Brett Cannon added the comment: @Vinay you got exactly what I mean. I had to actually teach a ton of people that shell trick with basename and pwd on Twitter, that trick doesn't seem to be something people know about, and yet a ton of people seem to be creating virtual environments with

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-24 Thread Julien Palard
Julien Palard added the comment: I like the idea and I think I will use it! As it's a bit long to type, I'm searching if other shorter variants could be usefull like: python3 -m venv --here python3 -m venv --cwd python3 -m venv --project being the equivalent of `python3 -m venv

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-24 Thread Vinay Sajip
Vinay Sajip added the comment: > Maybe it makes sense to add a `--basename-prompt` flag to set the prompt to > the current working directory's basename? What does this buy you beyond using --prompt $(basename $PWD) ? Perhaps I'm not understanding what you're getting at - how about an

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-24 Thread Florian Dahlitz
Change by Florian Dahlitz : -- nosy: +DahlitzFlorian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-23 Thread Brett Cannon
New submission from Brett Cannon : I did a Twitter poll to see if there was consistent naming of the directory people created a virtual environment into when done locally to code (the answer is no). But a common theme was people not liking that the prompt defaults to the name of the