cd /some/long/path # cdlongpathThen later:
<Cntl-R>cdlongpathIt will autocomplete to your earlier command. If you happen to forget an alias, no big deal :)
This is a purely technical blog concerning topics such as Python, Ruby, Dart, Linux, open source software, the Web, and lesser-known programming languages.
Ad maiorem Dei gloriam inque hominum salutem.
cd /some/long/path # cdlongpathThen later:
<Cntl-R>cdlongpathIt will autocomplete to your earlier command. If you happen to forget an alias, no big deal :)
In effect, this example emulates simple tasklets as are used in Stackless Python, as long as you use a yield expression to invoke routines that would otherwise "block".However, what happens if you can't use a yield expression to invoke routines that would otherwise block?
I've written a two-part series for "Linux Journal" called "Translating C to English Using Haskell". Here are links to the two parts:
http://www.linuxjournal.com/article/9096
http://www.linuxjournal.com/article/9242
The catchline is:
Write a program in Haskell that translates C type declarations into English. Manually translate the Haskell into English.
I've tried very hard to make it an entertaining article for Haskell newbies, so if your head exploded when you tried to read "A Gentle Introduction to Haskell", give my article a shot!