add fish shell config
This commit is contained in:
parent
e01cd5110c
commit
5569b6fe10
60 changed files with 1185 additions and 1 deletions
12
Configs/fish/.config/fish/functions/_pure_print_prompt.fish
Normal file
12
Configs/fish/.config/fish/functions/_pure_print_prompt.fish
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
function _pure_print_prompt \
|
||||
--description 'Concatenate parts single prompt string'
|
||||
set --local prompt
|
||||
|
||||
for prompt_part in $argv
|
||||
if test (_pure_string_width $prompt_part) -gt 0
|
||||
set --append prompt "$prompt_part"
|
||||
end
|
||||
end
|
||||
|
||||
echo (string trim -l $prompt)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue