fish: rename prompt functions
This commit is contained in:
parent
2738e8d6a9
commit
584034e053
9 changed files with 27 additions and 27 deletions
14
cli/.config/fish/functions/fish_prompt.add.fish
Normal file
14
cli/.config/fish/functions/fish_prompt.add.fish
Normal file
|
@ -0,0 +1,14 @@
|
|||
function fish_prompt.add
|
||||
set -l text $argv[1]
|
||||
set -l color $argv[2]
|
||||
if test -n "$color"
|
||||
set value (set_color $color)$text(set_color normal)
|
||||
else
|
||||
set value $text
|
||||
end
|
||||
if test -z "$prompt_string"
|
||||
set prompt_string $value
|
||||
else
|
||||
set -a prompt_string $value
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue