Changes for page VirtualEnv

Last modified by David De La Harpe Golden on 2026/05/17 17:37

From version 7.1
edited by David De La Harpe Golden
on 2026/05/17 16:16
Change comment: There is no comment for this version
To version 8.1
edited by David De La Harpe Golden
on 2026/05/17 16:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -21,6 +21,8 @@
21 21  
22 22  {{code language="bash"}}
23 23  #!/bin/bash
24 +# make a new python venv:
25 +# mkve SomeVenv
24 24  
25 25  if [ -e "$1" ] ; then
26 26   echo >&2 "Already exists. Use python -m venv ... directly for complex args."
... ... @@ -36,6 +36,8 @@
36 36  {{code language="bash"}}
37 37  
38 38  #!/bin/bash
41 +# use an existing python venv in a subshell, exit to exit:
42 +# ve SomeVenv
39 39  
40 40  if [ -f "$1/bin/activate" ]; then
41 41   exec bash --rcfile <(cat ~/.bashrc $1/bin/activate)
... ... @@ -46,7 +46,7 @@
46 46  {{/code}}
47 47  
48 48  
49 -## Shell Prompt ##
53 +== Shell Prompt ==
50 50  
51 51  I have a fancy non-default prompt in my ##~/.bashrc## that shows a little snake if in a python vm
52 52