I have a function that is setup to send status updates to anybar.function e --description 'Run command' \           --argument-names command  anybar yellow; eval $command; anybar green;endI am trying to find a way wrap all of my commands that I give through cli to fish in this function.Does anyone know if this is possible?
Fish Wrap all commands in a function
fish
Instead of this method, try adding the following to your config.fish:function my_preexec --on-event fish_preexec    anybar yellowendfunction my_postexec --on-event fish_postexec    anybar greenendThis will run these functions before and after every command, without requiring the potentially-explosive eval.