[Ilugc] command completion

  • From: steve@xxxxxxxxxxxx (steve)
  • Date: Sat Nov 21 03:02:43 2009

Hi,

On 11/20/2009 04:58 PM, Vamsee Kanakala wrote:

If you have a browser open all the time like I do, you can do quite a
few conversions and calculations in google (ctrl+k on firefox, typing
calculation and hitting enter is a bit easier than opening terminal and
bc in this case). But if you insist on terminal, there's something I
learnt just today that's easier than bc - simply typing echo
$((123*123)) is faster :)

...or perhaps even the shorter "echo $[123*123]" :)

btw, about command completion, judging by this thread I think many might not 
know about the existence of the package 'bash-completion' on most common 
distros. Do a [yum|apt-get] install bash-completion and enjoy bash commandline 
completion on steroids !(*)

cheers,
- steve

(*) for the curious and the cautious -- bash-completion complements the regular 
<tab> completion feature of bash by 'intelligently' completing arguments, for 
eg: only directories would show up after a 'cd<tab><tab>' and only pdf files 
listed with a 'evince<tab><tab>'


-- 
random non tech spiel: http://lonetwin.blogspot.com/
tech randomness: http://lonehacks.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/

Other related posts: