I’m working on several projects at the same time quite often and sometimes I’m loosing track of their states. Which one has uncommitted changes? Which one needs to be updated from an upstream?
It’s not difficult to write a bash oneliner to iterate over projects and run
git status for each of them:
Well, it is not a oneliner, but just for readability. It might be invoked as a function or as a shell script. Here is an example output of the script:
As you can see, this output is hard to read. It’s too verbose and lack of colors. Actually, you can’t see for which repo the info is printed.
The script above definitely should be improved. Fortunately, it was done already. There are a couple of alternatives like mgitstatus, this script or gr (which, actually, can do much more than just status). Currently I’m using the first one. Here is an example output:
Look much better, doesn’t it?
Pipfile.lock → requirements.txt
As it was pointed out in the comments, in the v2022.4.8 release a new command is added, which does the desired:
Here is the documentation for the command.
Docker machine name segment for Powerline
Some time ago I got several docker machines to use. I thought that it’d be nice to identify to which docker machine I’m connected at the moment. As far as I use Powerline status bar, a segment for it is the way to go. I didn’t find anything ready to use, so I had to create my own.
I am still here
Well, it’s been some time without any posts here. I’m not quite sure why exactly, but I wasn’t encouraged enough, probably. After a while a thought that I have something to write down, but after I saw the old design I decided to fix it first.