Posts: 1,308
BitJam
Joined: 31 Aug 2009
#1
I've been playing with the fish shell and I quite like it. I think it is much easier for beginners than Bash. Here are a couple of articles about it:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://lwn.net/Articles/136232/"
linktext was:"http://lwn.net/Articles/136232/"
====================================



========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.ibm.com/developerworks/aix/library/au-spunix_fish/?ca=dgr-lnxw9dGoFish&S_TACT=105AGX59&S_CMP=GRsitelnxw9d"
linktext was:"http://www.ibm.com/developerworks/aix/l ... sitelnxw9d"
====================================


In fact, I was thinking that with a little config tweaking it might be a better default shell than Bash for antiX. It has a greeting that is displayed when it starts. The greeting normally says how to get help ("type help for ..."). We could add a line that says"type bash to get a Bash shell".
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#2
There is a bug in the fish_indent command that causes funced (function edit) to create mangled versions of functions that contain IO redirection. I've submitted a patch to fix this bug but in the meantime, using"funced fish_indent" to create the following function fixes the worst of the problem:

Code: Select all

function fish_indent
        command fish_indent $argv | sed 's/1\+>/ >/'
end
I'm also using a patch that allows for multi-line prompts. Here is the prompt I'm currently using:

[12:36:44]jbowlin@chi:~/.config/fish/functions
><XX>


It contains the time, user@host, $PWD and then a fish-shaped prompt on a new line.