change main prompt icon

This commit is contained in:
Zynh0722 2023-12-16 22:22:41 -08:00
parent ec39d2e244
commit 75549ce640

View file

@ -18,8 +18,8 @@ function __slavic_color_echo
end
function __slavic_current_folder
if test $PWD = '/'
echo -n '/'
if test $PWD = /
echo -n /
else
echo -n $PWD | grep -o -E '[^\/]+$'
end
@ -35,19 +35,19 @@ end
function __slavic_rainbow
if echo $argv[1] | grep -q -e $argv[3]
__slavic_color_echo $argv[2] "彡ミ"
__slavic_color_echo $argv[2] 彡ミ
end
end
function __slavic_git_status_icons
set -l git_status (__slavic_git_status_codes)
__slavic_rainbow $git_status $__slavic_color_pink 'D'
__slavic_rainbow $git_status $__slavic_color_orange 'R'
__slavic_rainbow $git_status $__slavic_color_white 'C'
__slavic_rainbow $git_status $__slavic_color_green 'A'
__slavic_rainbow $git_status $__slavic_color_blue 'U'
__slavic_rainbow $git_status $__slavic_color_lilac 'M'
__slavic_rainbow $git_status $__slavic_color_pink D
__slavic_rainbow $git_status $__slavic_color_orange R
__slavic_rainbow $git_status $__slavic_color_white C
__slavic_rainbow $git_status $__slavic_color_green A
__slavic_rainbow $git_status $__slavic_color_blue U
__slavic_rainbow $git_status $__slavic_color_lilac M
__slavic_rainbow $git_status $__slavic_color_grey '?'
end
@ -74,13 +74,13 @@ function fish_mode_prompt
switch $fish_bind_mode
case default
set_color red
printf 'n'
printf n
case insert
set_color green
printf 'i'
printf i
case visual
set_color magenta
printf 'v'
printf v
end
set_color $__slavic_color_lilac
printf '] '
@ -91,5 +91,5 @@ function fish_prompt
__slavic_git_status
echo
__slavic_color_echo $__slavic_color_pink " "
__slavic_color_echo $__slavic_color_pink " "
end