I love Cygwin, I hate the commandline (cmd.exe) of Windows, so I always have one or more Cygwin terminals open (no need to use putty, yay!) But I ran into a snatch today: i tried to change my username for my cygwin installation. Last time around it was easy: opening an editor and changing the…
docker autocompletion containernames on Mac OS X
On Linux you can use D exec -it and autocompletion cycles through all the possible options. On Mac OS X it doesn’t work out of the box. To make this happen the changes are very easy, you need to find a Bash completion file, thankfully this is featured in the docker-compose repository on Github. You need to download this file and put it in the /etc/bash_completion.d/ . The name isn’t that important, but I would suggest using docker-compose because that way you can identify it when you visit that directory after a couple of years.
Now, after you start a new terminal, you should have all the cool autocomplete features you always wanted, because who want’s to remember all those long container names?