summaryrefslogtreecommitdiffstats
path: root/.config/fish/functions/fish_right_prompt_loading_indicator.fish
blob: eec7e2da70b98d8ef79c615ae34160326bb0a71f (plain)
1
2
3
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