tide/functions/_tide_decolor.fish

3 lines
102 B
Fish
Raw Normal View History

2020-05-20 20:05:33 +03:00
function _tide_decolor -a text
string replace --all --regex '\e(\[[\d;]*|\(B\e\[)m' '' "$text"
2020-05-09 01:32:58 +03:00
end