diff options
author | Yigit Sever | 2022-05-15 00:21:11 +0300 |
---|---|---|
committer | Yigit Sever | 2022-05-15 00:21:11 +0300 |
commit | 68785d0213a6b19c9f200d721de721803e4d6e61 (patch) | |
tree | 380b8193da7e2fa960e83287bcc3cd9b479ec419 | |
parent | a0a52e3cd4d35bffd43887cd62ed845a31bc3f1e (diff) | |
download | dotfiles-68785d0213a6b19c9f200d721de721803e4d6e61.tar.gz dotfiles-68785d0213a6b19c9f200d721de721803e4d6e61.tar.bz2 dotfiles-68785d0213a6b19c9f200d721de721803e4d6e61.zip |
fish: bring in loading right indicator
-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 | ||