1
0
Fork 0

fish: some functions and aliases

This commit is contained in:
Von Random 2023-02-05 22:13:01 +02:00
parent 077a885d2a
commit 331c9b0e69
24 changed files with 115 additions and 40 deletions

View file

@ -0,0 +1,10 @@
function prompt.add
set color $argv[1]
set text $argv[2]
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)(set_color $prev_color)$prompt_sep_a(set_color $color_fg) $text
end
set prev_color $color
end