aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools/web_config/sample_prompts/pythonista.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/tools/web_config/sample_prompts/pythonista.fish')
-rw-r--r--share/tools/web_config/sample_prompts/pythonista.fish10
1 files changed, 3 insertions, 7 deletions
diff --git a/share/tools/web_config/sample_prompts/pythonista.fish b/share/tools/web_config/sample_prompts/pythonista.fish
index 63a7ced7..ad772e2f 100644
--- a/share/tools/web_config/sample_prompts/pythonista.fish
+++ b/share/tools/web_config/sample_prompts/pythonista.fish
@@ -1,15 +1,11 @@
# name: Simple Pythonista
# author: davbo
-set normal (set_color normal)
-set magenta (set_color magenta)
-set yellow (set_color yellow)
-set green (set_color green)
-set gray (set_color -o black)
-
-set -g VIRTUAL_ENV_DISABLE_PROMPT true
function fish_prompt
+ if not set -q VIRTUAL_ENV_DISABLE_PROMPT
+ set -g VIRTUAL_ENV_DISABLE_PROMPT true
+ end
set_color yellow
printf '%s' (whoami)
set_color normal