added emojies ;)

This commit is contained in:
2020-04-16 16:46:23 +02:00
parent 22868007de
commit 90b5de2d3d
3 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,9 @@
function fish_prompt
set -l symbol "λ "
set -l code $status
set t31m_custom_right (t31m_prompt_right)
echo -ns "$t31m_custom_right"
if test -n "$ssh_client"
set -l host (hostname -s)
@ -16,6 +19,7 @@ function fish_prompt
echo -n -s (white)"^"(off)
end
printf '%s ' \U1F6E0
echo -n -s (red)"("(off)
if git::is_dirty
@ -53,12 +57,11 @@ function fish_prompt
end
set t31m_custom (t31m_prompt)
set t31m_custom_right (t31m_prompt_right)
# check if latest cmd resulted in exit code 0 (ok)
if test "$code" = 0
echo -e -n -s "$t31m_custom""$t31m_custom_right"(red)"\n$symbol"(off)
echo -e -n -s "$t31m_custom"(red)"\n$symbol"(off)
else
echo -e -n -s "$t31m_custom""$t31m_custom_right"(dim)"\n$symbol"(off)
echo -e -n -s "$t31m_custom"(dim)"\n$symbol"(off)
end
end