views:

131

answers:

4

Possible Duplicates:
Favourite command line trick
useful linux commands for programmers?
What is your single most favorite command-line trick using Bash?

I have recently become accustomed to doing most of my development (in various languages) from the bash shell, using command-line tools and interfaces. I have discovered it is convenient to stay in the command line because you can do many things without leaving that interface, and it is fast.

What tools and tricks are you aware of that can make bash (perhaps in conjunction with an editor like vim or emacs) a more powerful development environment to work in?

+1  A: 

You've probably done some or all of this, but for the record...

  1. ctags/etags
  2. plugins for vim and emacs
  3. get to know the bash ! history substitution feature (but be careful! :-)
  4. if using vi (over emacs) then get to know the :line mode
  5. you might want to check out the id-utils package
  6. if using bash on windows via cygwin, use rxvt instead of the default dos box

You also want to set up each tool in the programmer mode. Editors like vi and emacs can autoindent, show matching parens, etc. You need to read the help and turns these things on. Be sure that you run bash in the history mode that matches your editing reflexes. It defaults to emacs but for vi one does set -o vi.

DigitalRoss
A: 

Oh let's see... cut, sort, grep, find

Jim Barrows
these are commands, not tips
Adriano Varoli Piazza
+1  A: 

Start with an X11 window manager that works well without needing a mouse.

  • Awesome
  • xmonad

After that:

  1. screen
  2. bash_completion
  3. vim
  4. cscope
  5. ctags
  6. remake

I rarely need to touch the mouse for anything.

Michael McCarty
A: 

First, I use intensively shortcuts. Then, I could obviously mention things like vim, grep, tail, head, find, sudo !!,... But one thing I really can't live without is Programmable Completion. Of course, this will depend on your habit, but here are some must have for me:

Pascal Thivent