update: formatting, cleanup & order
This commit is contained in:
@ -54,10 +54,11 @@ function fish_prompt
|
||||
|
||||
set t31m_custom (t31m_prompt)
|
||||
|
||||
# check if latest cmd resulted in exit code 0 (ok)
|
||||
if test "$code" = 0
|
||||
echo -n -s "$t31m_custom"(red)"$symbol"(off)
|
||||
else
|
||||
echo -n -s (dim)"$symbol"(off)
|
||||
echo -n -s "$t31m_custom"(dim)"$symbol"(off)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user