Remove setup outside of fish_prompt from sample prompts

This doesn't work with fish_config.

For terlar and pythonista, remove unnecessary color setting.

For informative+git and pythonista, move variable setup into fish_prompt

Fixes #1141
This commit is contained in:
Fabian Homborg
2015-08-31 21:23:15 +02:00
parent 5043b9d06e
commit 60089f9750
3 changed files with 57 additions and 30 deletions

View File

@@ -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