1
0
mirror of https://github.com/zplug/zplug synced 2025-08-28 08:41:42 +02:00
zplug/test/.helpers/helper.zsh
b4b4r07 f2b2bc8f18 Add test/autoload/commands
- Add tests
- Fix some statements
- Restore some compatibility of v1
2016-02-10 00:27:40 +09:00

7 lines
104 B
Bash

#!/bin/zsh
unansi() {
cat <&0 \
| perl -pe 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g'
}