REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.28 KB
Close
/opt/alt/python37/lib/python3.7/site-packages/virtualenv/activation/nushell/activate.nu
Text
Base64
# Setting all environment variables for the venv let path-name = (if ((sys).host.name == "Windows") { "Path" } { "PATH" }) let virtual-env = "__VIRTUAL_ENV__" let bin = "__BIN_NAME__" let path-sep = "__PATH_SEP__" let old-path = ($nu.path | str collect ($path-sep)) let venv-path = ([$virtual-env $bin] | path join) let new-path = ($nu.path | prepend $venv-path | str collect ($path-sep)) # environment variables that will be batched loaded to the virtual env let new-env = ([ [name, value]; [$path-name $new-path] [_OLD_VIRTUAL_PATH $old-path] [VIRTUAL_ENV $virtual-env] ]) load-env $new-env # Creating the new prompt for the session let virtual_prompt = (if ("__VIRTUAL_PROMPT__" != "") { "(__VIRTUAL_PROMPT__) " } { (build-string '(' ($virtual-env | path basename) ') ') } ) # If there is no default prompt, then only the env is printed in the prompt let new_prompt = (if ( config | select prompt | empty? ) { ($"build-string '($virtual_prompt)'") } { ($"build-string '($virtual_prompt)' (config get prompt | str find-replace "build-string" "")") }) let-env PROMPT_COMMAND = $new_prompt # We are using alias as the function definitions because only aliases can be # removed from the scope alias pydoc = python -m pydoc alias deactivate = source "__DEACTIVATE_PATH__"
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__pycache__
DIR
-
drwxr-xr-x
2024-03-03 22:53:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
activate.nu
1.28 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
deactivate.nu
333 B
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
1.05 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).