summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatias Kotlik <mdkotlik@gmail.com>2019-10-25 07:41:01 -0500
committerMatan Kushner <hello@matchai.me>2019-10-25 21:41:00 +0900
commit221f07548cdb11f8b977dff2f0004a1c82f6daef (patch)
tree32d48c1aacde1b064e2f2985736efcbb6f8649ff
parent42388394ca44bb590b0cdcecaff853c96c2575fd (diff)
fix: Disable venv custom prompt when starship is in use (#551)
-rw-r--r--src/init/starship.fish4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init/starship.fish b/src/init/starship.fish
index b2e88e5ee..e8347108c 100644
--- a/src/init/starship.fish
+++ b/src/init/starship.fish
@@ -11,5 +11,9 @@ function fish_prompt
set -l starship_duration (math --scale=0 "$CMD_DURATION / 1000")
::STARSHIP:: prompt --status=$exit_code --keymap=$keymap --cmd-duration=$starship_duration --jobs=(count (jobs -p))
end
+
+# disable virtualenv prompt, it breaks starship
+set VIRTUAL_ENV_DISABLE_PROMPT 1
+
function fish_mode_prompt; end
export STARSHIP_SHELL="fish"