Muffinresearch Labs by Stuart Colville

Bash: turn on case-insensitive tab completion | 0 Comments

Posted in Linux/Unix on 6th June 2009, 10:24 am by

I always forget this one, but it’s dead handy as it allows you to type “py” hit tab and it will auto complete for “Python” or “python” for example. Without this setting you’d have to type explicitly what you want. To enable run:

echo set completion-ignore-case on | sudo tee -a /etc/inputrc

tee -a appends to the file – though clearly proceed with caution and if in any doubt backup /etc/inputrc first.

Post Tools

GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Ubuntu: add-apt-repository: command not found|(3)

When you’re using a minimal Ubuntu install if you find the ‘add-apt-repository’ command is missing (it’s useful for adding PPAs and other repositories), then simply run:

sudo apt-get install python-software-properties

Photos on Flickr

© Copyright 2004-12 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.506s.