From 68785d0213a6b19c9f200d721de721803e4d6e61 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 15 May 2022 00:21:11 +0300 Subject: fish: bring in loading right indicator --- .config/fish/functions/fish_right_prompt_loading_indicator.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .config/fish/functions/fish_right_prompt_loading_indicator.fish 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 @@ +function fish_right_prompt_loading_indicator --argument last_prompt + echo -n "$last_prompt" | sed -r 's/\x1B\[[0-9;]*[JKmsu]//g' | read -zl uncolored_last_prompt + echo -n (set_color brblack)"$uncolored_last_prompt"(set_color normal) +end -- cgit v1.2.3-70-g09d2