fish: get rid of starship, bring custom prompt back
This commit is contained in:
parent
83bcd5952f
commit
f323956d2b
10 changed files with 97 additions and 2 deletions
14
dot_config/fish/functions/fish_prompt.add.pl.fish
Normal file
14
dot_config/fish/functions/fish_prompt.add.pl.fish
Normal file
|
@ -0,0 +1,14 @@
|
|||
function fish_prompt.add.pl
|
||||
set -l color $argv[1]
|
||||
set -l text $argv[2]
|
||||
set -l sep ''
|
||||
if test -n "$prompt_sep"
|
||||
set sep (set_color $prev_color)$prompt_sep(set_color $color_fg)
|
||||
set prev_color $color
|
||||
end
|
||||
if test -z "$prompt_string"
|
||||
set prompt_string (set_color -b $color)(set_color $color_fg) $text
|
||||
else
|
||||
set -a prompt_string (set_color -b $color)$sep $text
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue