Is there a straightforward way to display the results of my
PS1 for a given set of directories?
To avoid the XY Problem, I'll state up front: I want to rapidly check the status of every git repo within a directory. I can run
git status in a
for ... do ... done loop, but that is hard to read.
I have oh-my-git running beautifully as part of my command prompt and it displays the status I'd like to know at a glance. I'd like to see what it says for every sub-directory in my
I can see what I need by manually calling
cd ~/repos/first-repo followed by the next, but besides the repetitive typing, I also have to remember all of the repos without skipping one. I'd be happy to script out
cding into each repo and displaying my customized prompt.