tide/functions/lean_decolor.fish
2020-05-08 15:32:58 -07:00

6 lines
168 B
Fish

function lean_decolor -a text
set text (string replace -a (set_color normal) '' $text)
set text (string replace -ar '\e\[[0-9;]*m' '' $text)
echo $text
end