This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Upsert gist | |
Requires at least postgres 9.5 and sqlalchemy 1.1 | |
Initial state: | |
[] | |
Initial upsert: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gitprompt.sh b/gitprompt.sh | |
index 978cae7..0f33e0e 100755 | |
--- a/gitprompt.sh | |
+++ b/gitprompt.sh | |
@@ -649,7 +649,11 @@ function gp_add_virtualenv_to_prompt { | |
local ACCUMULATED_VENV_PROMPT="" | |
local VENV="" | |
if [[ -n "${VIRTUAL_ENV-}" && -z "${VIRTUAL_ENV_DISABLE_PROMPT+x}" ]]; then | |
- VENV=$(basename "${VIRTUAL_ENV}") | |
+ if [[ $VIRTUAL_ENV == "$(pwd)/.venv" ]]; then |