- 1 Manipulating Azure Storage Accounts Using Storage PowerShell cmdlets
- 2 Vapor IO Brings OpenDCRE to General Availability
- 3 VMware Takes the Wraps Off vRealize Automation and vRealize Business
- 4 Microsoft Previews Hyper-V Containers for Windows Server 2016
- 5 Mirantis Led FUEL Project Gets Installed Under OpenStack Big Tent
Tweaking Linux Library Settings Within Readline
Readline is the library that handles your Linux command-line input (and input for some other applications). The various customizable options for it are set either system-wide in /etc/inputrc or per-user in ~/.inputrc. Most of the time the default settings will work perfectly well, but there are a few you may wish to try out that will make slight changes to the way that tab-completion behaves.Tip of the Trade: Readline is the library that handles Linux command-line input as well as input for applications. Most of the default settings work perfectly well, but some change the way tab-completion behaves and thus require modification.
Be sure to hit Ctrl-X, Ctrl-R after editing the file to re-read it and use the changes you've made.
Set completion-ignore-case onignores the case of the input line when tab-completing. Typing let followed by tab will display the match Letter.txt as well as the match letter.txt. (It is turned off by default.)
Set show-all-if-ambiguous onshows all completion possibilities immediately instead of waiting for tab to be hit for a second time. As I am quite impatient, I like this one a lot. (It, too, is turned off by default.)
Set visible-stats onshows the type of each file when tab-completing. This will append * to executable files and / to directories. (Again, it too, is turned off by default.)
Set mark-directories onand
set mark-symlinked-directories oncontrol the way that directory names are displayed once they are completed. The first value adds a forward slash at the end of regular directory names when they're auto-completed, and the second does the same for symlinked directories. (The first one is turned on by default; the second is turned off by default.)
set completion-query-items VALUEsets the value beyond which you will be asked if you wish to see all the possible completions. To turn this off altogether, set it to zero. (This is set to 100 by default.)
Juliet Kemp has been messing around with Linux systems, for financial reward and otherwise, for about a decade. She is also the author of "Linux System Administration Recipes: A Problem-Solution Approach" (Apress, 2009).