[Cialug] Evaluating productivity

Josh More MoreJ at alliancetechnologies.net
Mon May 10 16:11:04 CDT 2010


Now all I need is an "undo" command for the occasional errant for loop, and I'd be set.  :)

-Josh More, CISSP, GIAC-GSLC, GIAC-GCIH, RHCE, NCLP
morej at alliancetechnologies.net<mailto:morej at alliancetechnologies.net>
515-245-7701
________________________________
From: cialug-bounces at cialug.org [cialug-bounces at cialug.org] on behalf of Matthew Nuzum [newz at bearfruit.org]
Sent: Monday, May 10, 2010 16:03
To: Central Iowa Linux Users Group
Subject: Re: [Cialug] Evaluating productivity

Those are awesome tips Eric. After I read this I thought of two instances earlier today where alt . would have made things easier.

On Mon, May 10, 2010 at 12:57 PM, Eric Junker <eric at eric.nu<mailto:eric at eric.nu>> wrote:
On 5/10/2010 11:28 AM, Matthew Nuzum wrote:
> In code there are profilers that inspect program execution and
> highlight repeating tasks that are inefficient. Is there anything
> like that for the commandline? Maybe I could run it over my
> .bash_history file or it could watch me type.

This article shows how to analyze your bash history and talks about
creating Bash aliases/functions to minimize typing.

http://www.oreillynet.com/onlamp/blog/2007/01/whats_in_your_bash_history.html

I've found lots of good command line tips at
http://www.commandlinefu.com/commands/browse/sort-by-votes

A few of my favorite commands
"cd -" to change to the previous working directory
"ALT+." to insert the argument of the last command

I've got a few Bash aliases that save me some typing, modified my prompt
to show useful information (current branch). Replaced diff with
colordiff and use ack instead of grep. Still need to investigate custom
bash completion.

Also checkout j. http://github.com/rupa/j j keeps track of which
directories you use often and then instead of using cd to go to the
directory, you can use j and then type a substring of the path and jump
to that directory.

Eric
_______________________________________________
Cialug mailing list
Cialug at cialug.org<mailto:Cialug at cialug.org>
http://cialug.org/mailman/listinfo/cialug



--
Matthew Nuzum
newz2000 on freenode, skype, linkedin, identi.ca<http://identi.ca> and twitter

"Do not seek to follow in the footsteps of the wise. Seek what they sought." –Matsuo Bashō
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20100510/3f002568/attachment.htm 


More information about the Cialug mailing list