a weblog about programming, hacking, linux, and other randomness

My Photo
I'm a Programmer, Hobby Hacker, and Linux Freak.

Friday, March 27, 2009

Append Forward-Slash to Symlink Directories

By default Bash will not append a trailing forward-slash to symbolic links pointed at directories. This is because a symlink is seen as a file instead of a directory. Adding the following line to your ~/.inputrc will add this missing forward-slash and make your terminal use a little faster:
set mark-symlinked-directories on
This and other great Bash tips found at Bash Tips & tricks.

Update: Home/End Key Fix

After changing this setting you may notice your Home and End keys stop working, if so try including the following lines in your ~/.inputrc:
"\e[1~": beginning-of-line
"\e[4~": end-of-line
This and other fixes thanks to The Crazy Greek.

0 comments:

Post a Comment