You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gext list | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' | grep --quiet "(arcmenu@arcmenu.com)"
But I believe this could be better handled by gext itself. For example, it could disable colors automatically when the stdout is not attached to a terminal (i.e. running in a pipeline).
The text was updated successfully, but these errors were encountered:
felipecrs
added a commit
to felipecrs/dotfiles
that referenced
this issue
Jun 23, 2024
I'm writing a script that uses
gext
to detect whether some extension is installed or not:gext list | grep --quiet "(arcmenu@arcmenu.com)"
But this doesn't work because gext's output is colorized and therefore grep doesn't match.
The workaround is https://stackoverflow.com/a/51141872:
gext list | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' | grep --quiet "(arcmenu@arcmenu.com)"
But I believe this could be better handled by gext itself. For example, it could disable colors automatically when the stdout is not attached to a terminal (i.e. running in a pipeline).
The text was updated successfully, but these errors were encountered: