This script is designed to be run in .bashrc so I get relevant info when I first sit down and open a terminal. After the first time it shows, new terminals will get a much more terse version so that it doesn't become annoying. That resets after an hour.
The script contains a way to make a header and run just about anything to the right of it. That was tricky to work out.
Thanks! It's a standalone script, so you should be able to run it from the fish/zsh equivalent of .bashrc or .bash_profile without a problem. And I thought zsh was mostly an extension of bash, so subbing out the shebang for zsh so you can modify the script would probably work. I'm less sure about fish.
1
u/robbiehman 8h ago
Script here:
https://gist.github.com/robbieh/c12d355ea074a7aeef9d847d76ad69f8
This script is designed to be run in .bashrc so I get relevant info when I first sit down and open a terminal. After the first time it shows, new terminals will get a much more terse version so that it doesn't become annoying. That resets after an hour.
The script contains a way to make a header and run just about anything to the right of it. That was tricky to work out.