tide/functions/_tide_decolor.fish
2020-05-20 10:05:33 -07:00

6 lines
182 B
Fish

function _tide_decolor -a text
set text (string replace -a (set_color normal) '' "$text")
set text (string replace -ar '\e\[[0-9;]*m' '' "$text")
printf '%s' "$text"
end