diff options
-rw-r--r-- | .config/fish/functions/fish_right_prompt_loading_indicator.fish | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/fish/functions/fish_right_prompt_loading_indicator.fish b/.config/fish/functions/fish_right_prompt_loading_indicator.fish new file mode 100644 index 0000000..eec7e2d --- /dev/null +++ b/.config/fish/functions/fish_right_prompt_loading_indicator.fish | |||
@@ -0,0 +1,4 @@ | |||
1 | function fish_right_prompt_loading_indicator --argument last_prompt | ||
2 | echo -n "$last_prompt" | sed -r 's/\x1B\[[0-9;]*[JKmsu]//g' | read -zl uncolored_last_prompt | ||
3 | echo -n (set_color brblack)"$uncolored_last_prompt"(set_color normal) | ||
4 | end | ||