mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-17 07:56:11 +01:00
funny fish
This commit is contained in:
12
.config/fish/functions/_pure_print_prompt.fish
Normal file
12
.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
|
||||
Reference in New Issue
Block a user