If you're on OS X or a Linux distro, you should be able to
touch ~/.fansh_completions
and copy and paste anything that you want rlwrap to tab-complete for you into that file (for example, all the names of the Types of the Build api). You might have to restart the terminal to get things up and running.
I hope this makes fansh even easier to use for you guys! :)
tacticsFri 22 May 2009
Since readline doesn't work easily with Windows, it's probably a better investment to break Fansh into more of an API that can be embedded into IDEs, such as Flux. That was something I was toying with a while ago, but never got around to finishing.
brianTue 26 May 2009
Since readline doesn't work easily with Windows, it's probably a better investment to break Fansh into more of an API that can be embedded into IDEs, such as Flux.
Agree, hard to do a really good portable command line tool without bringing in some new dependencies. Although I would say fansh could use a lot of work all around.
Lomono Fri 22 May 2009
How can I make fansh even easier to use?
Simple, you just need to wrap it with rlwrap!
What can rlwrap do for me?
Here are some examples.
Where can I get rlwrap?
If all else fails you can get the source from rlwrap's homepage.
For more information, have a look at the rlwrap README. For even more information, there's the rlwrap manpage and the readline manpage.
Lomono Fri 22 May 2009
It would be nice to be able to have fansh come pre-wrapped in rlwrap, but I guess we could make to with a HOWTO for now.
If anyone would like to re-write the post so that it reads better, I've uploaded the source to the first post to pastebin.
If you're on OS X or a Linux distro, you should be able to
and copy and paste anything that you want rlwrap to tab-complete for you into that file (for example, all the names of the Types of the Build api). You might have to restart the terminal to get things up and running.
I hope this makes fansh even easier to use for you guys! :)
tactics Fri 22 May 2009
Since readline doesn't work easily with Windows, it's probably a better investment to break Fansh into more of an API that can be embedded into IDEs, such as Flux. That was something I was toying with a while ago, but never got around to finishing.
brian Tue 26 May 2009
Agree, hard to do a really good portable command line tool without bringing in some new dependencies. Although I would say fansh could use a lot of work all around.