The Lumber Room

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s