linux

Alias a.ka. Alias a.k.a BashAliases

I found a cool little tool today for building bash aliases.  

Being the lazy SOB that I am, I'm just going to quote the project page since it describes well why it exists:

This is all well and good but ... the time and forethought required to create these definitions [aliases] is often a significant barrier that is difficult to overcome. Even though the time it would take to create an alias would save much time in the long run (and much stress on hands and wrists and arms) the task at hand always seems to take priority. And so one rarely does.

- http://www.logicalpoetry.com/bashalias/

Here's a quite run down of a couple commands:

acd Alias Current Directory

Example:

$ cd ~/work/somewhere/deep/in/my/sourcecode/where/I/go/all/the/time
$ acd alias for /home/jacob/work/somewhere/deep/in/my/sourcecode/where/I/go/all/the/time?rsi
$ cd /
$ rsi
$ # Goes to the directory.

The alias is saved in ~/.bash/alias.

Also has alc

Alias Last Command

This one basically let's you choose from the last 9 entries in your history and make one an alias.

Tags: 

Free Ideas: Paper clip guy for your bash CLI

Warning for Non-nerds: you are not required to read this blog post.

I was chatting Barry Jaspan this morning about how he switched from tcsh to bash after 22 years!  It turns out the features he stayed with tcsh for had been available in bash for years.  He just didn't know how to use them, or didn't know they existed and couldn't be bothered to learn.  This is very typical.  I work at about 75% or less efficiency on the command line (something I often spend 1/4-/1/2 my day doing).  It's hard to try and figure out what tools you need to be a little more efficient and have a more pleasurable command line experience.  And then retaining that knowledge (especially for the more arcane ones) is a difficult task.

So what about:

A M$ Office paper clip dude for your terminal

You've retyped something 5 times he pops up with "Do you want me to show you how to create an alias?"

but make it a really geeky and pretentious fat linux dude w/ a beard

like "You obviously can't RTFman! You don't know about {,shell expansion} or do you just like to waste time?"

cli-helper.jpg

 

Whattya think?  Should we do it?

Tags: 

Subscribe to linux