fish: some functions and aliases
This commit is contained in:
parent
077a885d2a
commit
331c9b0e69
24 changed files with 115 additions and 40 deletions
10
cli/.config/fish/functions/prompt.add.fish
Normal file
10
cli/.config/fish/functions/prompt.add.fish
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue