Update strip color perl command

This commit is contained in:
Willa Drengwitz
2018-08-31 13:53:51 -04:00
parent f0ef9b06f6
commit fc679a06ac

View File

@@ -15,7 +15,8 @@ fi
# Strip color codes from a string
strip_colors() {
perl -pe 's/\e\[[\d;]*m//g'
# Updated with info from: https://superuser.com/a/380778
perl -pe 's/\x1b\[[0-9;]*[mG]//g'
}
# Print space separated tab completion options