tide/functions/_tide_decolor.fish
2020-05-27 12:11:22 -07:00

3 lines
139 B
Fish

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