Skip to content
130: virtualenv activation prompt consistency across shells - an open source dev and test adventure - Brian Skinn episode artwork

Sep 13, 2020 33 min

130: virtualenv activation prompt consistency across shells - an open source dev and test adventure - Brian Skinn

from Test & Code Hosted by Brian Okken

virtualenv supports six shells: bash, csh, fish, xonsh, cmd, posh. Each handles prompts slightly differently. Although the virtualenv custom prompt behavior should be the same across shells, Brian Skinn noticed inconsistencies. He set out to fix those inconsistencies. That was the start of an adventure in open source collaboration, shell prompt internals, difficult test problems, and continuous integration quirks. Brian Skinn initially noticed that on Windows cmd, a space was added between a prefix defined by --prompt and the rest of the prompt, whereas on bash no space was added. For reference, there were/are three nominal virtualenv prompt modification behaviors, all of which apply to the prompt changes that are made at the time of virtualenv activation: If the environment variable VIRTUAL_ENV_DISABLE_PROMPT is defined and non-empty at activation time, do not modify the prompt at all. Otherwise: If the --prompt argument was supplied at creation time, use that argument as the prefix to apply to the prompt; or, If the --prompt argument was not supplied at creation time, use the default prefix of "() " as the prefix (the environment folder name surrounded by parentheses, and with a trailing space after the last paren. Special Guest: Brian Skinn. Links: virtualenv Initial issue that started the adventure final PR pent: pent Extracts Numerical Text -- Mini-language driven parser for structured numerical data Lightening talk on pent

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

130: virtualenv activation prompt consistency across shells - an open source dev and test adventure - Brian Skinn

0:00 33:33

No transcript yet.

Requests help us decide what to transcribe next.

French Your Way Jessica: Native French teacher founder of French Your Way Boost your French listening skills and test your comprehension with this one of a kind series of podcasts. Get the chance to listen to a real conversation between native speakers talking at normal speed AND customise your learning experience through carefully designed sets of questions (2 levels of difficulty) available for download at www.frenchvoicespodcast.com. All interviews also come with the transcript. French teacher Jessica interviews native speakers of French from around the world who share a bit of their life and passion. Where else would you meet in one same place a French yoga teacher based in Melbourne, a soap manufacturer from Provence, or a couple cycling around the world? Insurance Exam Queen Melissa Dillon Hi, I am Melissa, the Insurance Exam Queen. I’m the most requested Exam Prep Instructor in the U.S. and have helped thousands of people pass their Property & Casualty and Life & Health insurance exam with ease. With a long string of ONLY 5 star reviews, I’ve become known for my casual and simple teaching style, and my students love the fun memorization techniques, charts, graphs and other visual aides I use to help you understand the material. Most of my students pass their 1st or next time after going through one of my Class Series Packages. I simplify everything, tell you what to study, and even include everything from Study Notes to my own personal Practice Test to help you focus ONLY on what you need to know in order to pass the test. View my packages here: http://www.insuranceexamqueen.com Code Together Code Together Code Together is an interview series that explores challenges at the forefront of cross-architecture development. We’ll talk with those at Intel and across the industry who are forging a path on this often treacherous journey through an increasingly diverse, data-centric world. Join the conversation at oneapi.com.

Frequently asked questions

How long is this episode of Test & Code?

This episode is 33 minutes long.

When was this Test & Code episode published?

This episode was published on September 13, 2020.

Can I download this Test & Code episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.