The Haiku/BeOS Tip Server
Tips and tricks for Haiku/BeOS users

Custom keyboard shortcuts

Contributed by: Scot Hacker
This tip is valid for: Both BeOS and Haiku

If there are lengthy Terminal commands you find yourself typing over and over again, why not create a nice, easy-to-remember shortcut? Unix’ alias feature is, of course, part of BeOS, and all you have to do to take advantage of it is to insert aliases on your /boot/home/.profile file.

For example, if you find you always want long, complete directory listings rather than the short, filename only listings provided by ls, add this line to your .profile:

alias ls=”ls -l -a”

The next time you launch Terminal, typing ls will remap to the long format. Another useful one might be an alias to FTP to your server, for instance:

alias ftb=”ftp mysite.dnai.com”

Use your imagination.

Posted in Terminal


(comments are closed).