'color log out piped to sed in a zsh shell
I have the following working except for the coloring:
podname=$(get-my-pod) && kr logs -f $podname | sed "s/^{/{\"podname\":%F{221}\"$podname\"%f,/"
the output streams with the {"podname":"my-pod-ic9qc17", ... prepended as expected. However I'd really like to color the pod value and the %F{221} and %f are just being read literally by the stdout stream. How do I get these to be recognized as color instructions?
(PS: the above works for my $PS1 prompt)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
