Live data from Hacker News

Fish shell 2.1

fishshell.com

1–10 of 154 posts

Re: Fish shell 2.1

#2
I like the idea of fish, but I've had issues with other programs assuming things about my shell. Like vim and I think even other programs. There's something fish doesn't do, that other shells like bash and zsh do, that breaks other programs. I can't remember the specifics, but fish breaks stuff for me when I tried it, and I tried it pretty recently.

Re: Fish shell 2.1

#4
post #2

I like the idea of fish, but I've had issues with other programs assuming things about my shell. Like vim and I think even other programs. There's something fish doesn't do, that other shells like bash and zsh do, that breaks other programs. I can't remember the specifics, but fish breaks stuff for me when I tried it, and I tried it pretty recently.

Anything I have issues with I simply run under bash. I've had very few problems, and use it on my work machine (where I live in tmux and vim).

Edit: I'm running a pre-release of 2.0.0, which I modified to time every command. I was extremely impressed at how simple it was for me to add (not my usual language).

Re: Fish shell 2.1

#5
post #2

I like the idea of fish, but I've had issues with other programs assuming things about my shell. Like vim and I think even other programs. There's something fish doesn't do, that other shells like bash and zsh do, that breaks other programs. I can't remember the specifics, but fish breaks stuff for me when I tried it, and I tried it pretty recently.

Exporting environment variables is pain, i don't know why some apps pick env others don. Android sdk is problematic for example, go compiler too.

Re: Fish shell 2.1

#6
post #2

I like the idea of fish, but I've had issues with other programs assuming things about my shell. Like vim and I think even other programs. There's something fish doesn't do, that other shells like bash and zsh do, that breaks other programs. I can't remember the specifics, but fish breaks stuff for me when I tried it, and I tried it pretty recently.

fish's syntax is not POSIX compliant (because fish tries to simplify syntax), so at times it breaks other programs which depends on POSIX syntax. But you can always find workarounds for those problems. For e.g. see the discussion at https://github.com/fish-shell/fish-shell/issues/921 . Let us know your problem and we can help you with migrating.

Re: Fish shell 2.1

#8
post #2

I like the idea of fish, but I've had issues with other programs assuming things about my shell. Like vim and I think even other programs. There's something fish doesn't do, that other shells like bash and zsh do, that breaks other programs. I can't remember the specifics, but fish breaks stuff for me when I tried it, and I tried it pretty recently.

There are two problems I've found that prevent me from using fish more:

1. Fish syntax breaks virtualenv (Edit: Okay, apparently this isn't actually a problem).

2. Fish does not have the equivalent of 'disown' in bash. This is fine if you exit the parent shell normally, but not if you send SIGKILL, which my window manager (wmii and i3) does.

Re: Fish shell 2.1

#9
post #5
post #2

I like the idea of fish, but I've had issues with other programs assuming things about my shell. Like vim and I think even other programs. There's something fish doesn't do, that other shells like bash and zsh do, that breaks other programs. I can't remember the specifics, but fish breaks stuff for me when I tried it, and I tried it pretty recently.

Exporting environment variables is pain, i don't know why some apps pick env others don. Android sdk is problematic for example, go compiler too.

Exporting variables is simple: set -x #{NAME} #{value}; setting Go environment is simple too:

  set -x GOPATH $HOME/go
  set -x PATH $GOPATH/bin $PATH

Re: Fish shell 2.1

#10
This is the biggest change:

> http://fishshell.com/release_notes.html

> When tab-completing a file, fish will first attempt prefix matches (foo matches foobar), then substring matches (ooba matches foobar), and lastly subsequence matches (fbr matches foobar). For example, in a directory with files foo1.txt, foo2.txt, foo3.txt…, you can type only the numeric part and hit tab to fill in the rest.

This is really brilliant! I always wanted that (without knowing it).

Post reply on HN