8000 bpo-37663: have venv activation scripts all consistently use __VENV_PROMPT__ for prompt customization by brettcannon · Pull Request #14941 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37663: have venv activation scripts all consistently use __VENV_PROMPT__ for prompt customization #14941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 21, 2019
Prev Previous commit
Next Next commit
Drop the background color for fish
  • Loading branch information
brettcannon committed Jul 24, 2019
commit 574e92ba0bc189fc038a4d51f9faeb21a38ce439
4 changes: 2 additions & 2 deletions Lib/venv/scripts/posix/activate.fish
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
# Save the return status of the last command.
set -l old_status $status

# Output the venv prompt; colors taken from Python logo (blue & yellow, respectively).
printf "%s%s%s" (set_color -b 4B8BBE FFD43B) "__VENV_PROMPT__" (set_color normal)
# Output the venv prompt; color taken from the blue of the Python logo.
printf "%s%s%s" (set_color 4B8BBE) "__VENV_PROMPT__" (set_color normal)

# Restore the return status of the previous command.
echo "exit $old_status" | .
Expand Down
0