Friday, March 27, 2015

Set bash completion when aliasing docker to d

After you installed docker bash completion, either by sourcing it from your .bash_profile or installing it to bash-completion, add this line to the end of your docker-completion.sh file.
complete -F _docker d
Reload your shell. And that's it!

Note: change the last d to other character you aliased docker to

No comments:

Config number of file descriptors on Linux

Check file descriptor limit for a process. Vary depending on owner of the process $ cat /proc/{process-id}/limits Check current number of...