The Lumber Room

"Consign them to dust and damp by way of preserving them"

Archive for September 25th, 2006

Bash completion

leave a comment »

Picks up everything in /etc/bash_completion and /etc/bash_completion.d by default.
complete -p shows all the available completions, and one can modify and reuse them.
alias ll=[TAB] will actually complete the alias, and function car[TAB] will actually complete the function!
As for how to write one’s own functions to be used for completion, it’s in this tutorial.

Written by S

Mon, 2006-09-25 at 16:39:37

Posted in compknow