Donnie Berkholz ([info]spyderous) wrote,
@ 2005-12-05 15:06:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
[Gentoo] fish - a shell with syntax highlighting
I just added app-shells/fish to the tree. It's a shell with syntax highlighting, awesome tab completion, and more. The tab completion for man pages, for example, actually includes the description of the command from whatis.

Look at the screenshots.

Update: More cool stuff about fish: It has really good error reporting, so it's easy to find problems. If you type 'help' in the shell, it opens a browser (an X-based browser if DISPLAY is set, otherwise something like links/lynx) -- This is cool because you get hyperlinks. Reworked syntax for much of the shell scripting features is self-consistent and easy to understand.



(Post a new comment)


(Anonymous)
2005-12-06 02:05 am UTC (link)
You had to start everyone's mind going with the yum tab complete. This inevitably leads to the question, is there a portage tab complete?

--postmodern

(Reply to this) (Thread)


(Anonymous)
2005-12-06 02:21 am UTC (link)
sure... i know zsh and zsh-completion had tons of tab-completes, including some for portage. I don't know, but I'm pretty sure bash-completion has one too.

(Reply to this) (Parent)


[info]spyderous
2005-12-06 02:25 am UTC (link)
There is not currently. However, there is one for rpm and yum, as you observed, so I'd love to see a portage completion file contributed.

(Reply to this) (Parent)


(Anonymous)
2005-12-06 03:26 am UTC (link)
The ebuild doesn't seem to install any files

>>> Merging app-shells/fish-1.17.0 to /
>>> Regenerating /etc/ld.so.cache...
>>> app-shells/fish-1.17.0 merged.

(Reply to this) (Thread)


[info]spyderous
2005-12-06 05:52 am UTC (link)
File a bug, assign it to me, post a full build log and emerge info.

Works for me.

(Reply to this) (Parent)(Thread)


[info]spyderous
2005-12-06 05:55 am UTC (link)
I just applied a fix to CVS; give it another shot in an hour or so.

(Reply to this) (Parent)

fish = slow
(Anonymous)
2005-12-06 03:37 pm UTC (link)
try for i in $(ls /bin);echo $i;end with fish

sleep well (takes about 20s)

try for i in $(ls /bin);do echo $i;done in bash
should take 1 sec.

(Reply to this) (Thread)

Re: fish = slow
(Anonymous)
2005-12-06 03:53 pm UTC (link)
Yeah, noticed that too, even for something like "for i in 1 2 3; ..." it's really slow :-(

(Reply to this) (Parent)

Re: fish = slow
(Anonymous)
2005-12-14 06:20 pm UTC (link)
bash and zsh have builtins for the echo command, fish doesn't. So fish has to fork 50 times, while bash/zsh forks doesn't. For that type of synthetic benchmarks, fish will perform horribly. For code that does something more interesting than calling echo 50 times, the difference will be minimal.

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…