Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

pipe every command



is there a way to put every command through a pipe or redirect?

i'd prefer some way that i can put logic in so that i can exclude some
commands. but, basically i want everything to go through
'source-highlight' so:
ps ax | grep ssh
will end up:
ps ax | grep ssh | source-highlight -f esc256 -s shell

and:
sa
would end up:
sa | source-highlight -f esc256 -s shell

sa doesn't look as nice as ps with this option, but hopefully i'll be
able to determine what command was given and have some logic to give
different options or none at all (for interactive commands like vim or
tmux, this might not be so good - it fails hard with vim anyway).



Messages sorted by: Reverse Date, Date, Thread, Author