Monday, November 14, 2011

Bash Shell Case Insensitive

The very first thing to do on a fresh Linux install: make bash shell tab-completion case-insensitive.

Edit /etc/inputrc and add the following line:
set completion-ignore-case on
(As per the instructions at this Cyberciti FAQ)

Monday, October 31, 2011

Canon MF4140 in Linux Mint

I'd never been able to get the printer driver for my Canon MF4140 to install properly in Linux. The driver is the one available from the Canon driver download site.

The installation failed with a message about "gs-esp" being a dependency, but gs-esp doesn't seem to be a supported package any more.

So I went on a search and tried out "lenny", which apparently is an implementation or contains gs-esp. This did the trick: the Canon printer drivers then installed without a problem.

To install this package (on Linux Mint):
    sudo dpkg -i gs-esp_8.62.dfsg.1-3.2lenny5_all.deb

Saturday, October 29, 2011

Automatically Start a Script in Linux Mint LXDE

In a default install, the directory to put an autostart script doesn't exist.

I found it was:

Add a file called autostart here to automatically run scripts or start applications.

Monday, May 9, 2011

Getting rid of Media Info from context menus

If a "Media Info" option appears in Windows Explorer context menus and you want to get rid of it, delete the following key from the registry:
HKEY_CLASSES_ROOT\*\shell\Media Info
(Original link for solution.)

This option in the menu is particularly annoying if you're using the keyboard to rename a file (pressing Menu, m). Instead of jumping to rename, it would select Media Info first.

Mercurial/Vim compatibility

If you want to use vim as your editor in the .hgrc file (on Windows), install vim to a directory with no spaces in the path.

Wednesday, April 27, 2011

A minimal mercurial.ini

A minimal mercurial.ini (or .hgrc):
username = Ash
merge = TortoiseMerge
editor = vim
verbose = true



The reason for the "mode=win32" can be found in this question: colors-in-cygwin-being-displayed-as-raw-ansi-codes.

Vim Options

Some options for the .vimrc file:
colorscheme desert
set spell
set lines=60
set columns=90
set nobackup
set tabstop=2
set shiftwidth=2
set expandtab
set ignorecase
set nowrapscan
set autoindent
set smartindent
set listchars=tab:>\ ,eol:$
set list