tide/functions/_tide_decolor.fish

3 lines
139 B
Fish
Raw Normal View History

2020-05-20 20:05:33 +03:00
function _tide_decolor -a text
printf '%s' "$text" | string replace -a (set_color normal) '' | string replace -ar '\e\[[0-9;]*m' ''
2020-05-09 01:32:58 +03:00
end