mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-08 16:21:16 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user