Re: [SLUG] diffstat, Ctrl-R, pushd/popd
Hey, this is a fun game! On Wed, 2005-02-09 at 22:33 +1100, Angus Lees wrote: > At Wed, 9 Feb 2005 09:42:31 +1100, Ben Leslie wrote: > > 1/ Ctrl-R history searching > > > > When using the shell you pretty quickly work out that pressing up will > > search > > backwards through you history, however it tooks me ages to find out that > > you > > could search backs through the history by typing Ctrl-R and a search string. > > One of my favourite is M-. (thats alt or maybe windows key and > full-stop) I've put this: bind "\C-b":vi-bWord bind "\C-f":vi-fWord in my .bashrc to let me use ctrl-f/b to move forward and backwards words. It was recently pointed out to me though that you can actually do this with alt-f/b without any .bashrc modification at all. Also, this: alias screen='screen -e^\`\`' makes the 'screen key' ctrl-~, which means I don't go crazy every time I try to go to the start of a line with ctrl-a in a screen session. Keep this stuff coming. It makes my life easier! James. -- "There is no I in TEAM but there is an i in Ninja" -- http://www.ninjaburger.com/sekrit/ signature.asc Description: This is a digitally signed message part -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] diffstat, Ctrl-R, pushd/popd
With bash:- My typing is pretty poor, and I make a lot of typos The substitution feature is some thing I use really frequently so I type :>: scream (oops) >: ^am^en screen (yay) On 09/02/2005, at 11:03 PM, Gottfried Szing wrote: 1/ Ctrl-R history searching When using the shell you pretty quickly work out that pressing up will search backwards through you history, however it tooks me ages to find out that you could search backs through the history by typing Ctrl-R and a search string. One of my favourite is M-. (thats alt or maybe windows key and full-stop) That will cycle through the last word on the last commands. for those who are using the bash a nice list of shortcuts: http://hajek.stat.ubc.ca/~harry/local/bash.html cu -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] diffstat, Ctrl-R, pushd/popd
>> 1/ Ctrl-R history searching >> >> When using the shell you pretty quickly work out that pressing up will >> search backwards through you history, however it tooks me ages to find >> out that you could search backs through the history by typing Ctrl-R >> and a search string. > > One of my favourite is M-. (thats alt or maybe windows key and > full-stop) > > That will cycle through the last word on the last commands. for those who are using the bash a nice list of shortcuts: http://hajek.stat.ubc.ca/~harry/local/bash.html cu -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] diffstat, Ctrl-R, pushd/popd
At Wed, 9 Feb 2005 09:42:31 +1100, Ben Leslie wrote: > 1/ Ctrl-R history searching > > When using the shell you pretty quickly work out that pressing up will search > backwards through you history, however it tooks me ages to find out that you > could search backs through the history by typing Ctrl-R and a search string. One of my favourite is M-. (thats alt or maybe windows key and full-stop) That will cycle through the last word on the last commands. (Of course zsh has all sorts of exciting keys, but I won't turn this into a zsh-specific mail..) -- - Gus -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] diffstat, Ctrl-R, pushd/popd
The amount of power in the UNIX shell and related command lines tools is really quite amazing, however I find there are some things out there that I never know about until someone points them out to you. So I'm going to point out some tricks that have saved me heaps of time, but didn't really know until someone pointed them out to me: 1/ Ctrl-R history searching When using the shell you pretty quickly work out that pressing up will search backwards through you history, however it tooks me ages to find out that you could search backs through the history by typing Ctrl-R and a search string. 2/ popd/pushd If you find yourself traversing directores often pushd and popd are really useful. 3/ diffstat Provides a nice concise of a diff file. Cheers, Benno -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html