Live data from Hacker News

Fish shell 2.1

fishshell.com

21–30 of 154 posts

Re: Fish shell 2.1

#21
I just had an argument with some folks around Bash vs Fish, my argument was as simple as "i like it", their was "you won't learn anything, fish sucks, you can do anything it does with a modded bash" ... but that's the point, i don't want to modify and configure, i want it to work out of the box.

Re: Fish shell 2.1

#22
With love: I always felt like fish and even zsh are kind of beautiful OCD-induced bouts of counter productivity in the same vain as Dvorak keyboard layouts and Plan 9. We can't handle things being messy and imperfect so we solve it by building our own parallel universes.

What do you do when you have to use a computer without your customization? Perfect is the enemy of good, worse is better, join us on the dark side, all that jazz. :)

Is fish really really REALLY worth it?

Re: Fish shell 2.1

#23
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.

Yes, fish is not bourne shell compatible and never will be.

Fish is as the name (Friendly Interactive SHell) suggests an interactive shell. You should just set vim/emacs/whatever to use a bourne-compatible shell. It's one line of vim config: set shell=/bin/sh

Re: Fish shell 2.1

#25
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.

I had similar problems, and found a work around that works great for me:

bash is configured as my default shell. So every program that runs my default shell and just assumes it can use POSIX syntax, gets what it wants (even though it should really just use /bin/sh).

My terminal on the other hand is configured to ignore my default shell and run fish instead.

I also have a line in my .bash_profile (meaning it only runs for login shells) that checks whether it's running in a virtual terminal and in that case exec's fish in a new tmux (because tmux is a terminal emulator, which means that any bash instances within it won't know they are in a virtual terminal and behave like a normal bash).

Re: Fish shell 2.1

#26
post #22

With love: I always felt like fish and even zsh are kind of beautiful OCD-induced bouts of counter productivity in the same vain as Dvorak keyboard layouts and Plan 9. We can't handle things being messy and imperfect so we solve it by building our own parallel universes. What do you do when you have to use a computer without your customization? Perfect is the enemy of good, worse is better, join us on the dark side,…

Yes.

Re: Fish shell 2.1

#27
post #22

With love: I always felt like fish and even zsh are kind of beautiful OCD-induced bouts of counter productivity in the same vain as Dvorak keyboard layouts and Plan 9. We can't handle things being messy and imperfect so we solve it by building our own parallel universes. What do you do when you have to use a computer without your customization? Perfect is the enemy of good, worse is better, join us on the dark side,…

What do you do when you have to use a computer without your customization?

Uh, by that logic I would only use notepad.exe.

Re: Fish shell 2.1

#28

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 brillia…

I am looking for something that lets me type the first few letters and when I press the arrow-up key then (maybe in combination with another key), it will only offer those items from the history, which match my previous input.

Something like:

Type:

> ssh

press arrow-up:

> ssh larry@google.com

press arrow-up:

> ssh mark@facebook.com

Re: Fish shell 2.1

#29
post #27
post #22

With love: I always felt like fish and even zsh are kind of beautiful OCD-induced bouts of counter productivity in the same vain as Dvorak keyboard layouts and Plan 9. We can't handle things being messy and imperfect so we solve it by building our own parallel universes. What do you do when you have to use a computer without your customization? Perfect is the enemy of good, worse is better, join us on the dark side,…

What do you do when you have to use a computer without your customization? Uh, by that logic I would only use notepad.exe.

Yes, that would be the other extreme -- just like fish, in the opposite direction. I'm thinking there's a happy medium. But maybe this isn't such a problem, note I prefaced my comment 'with love'.

I'm asking, not telling.

Re: Fish shell 2.1

#30

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 brillia…

I am looking for something that lets me type the first few letters and when I press the arrow-up key then (maybe in combination with another key), it will only offer those items from the history, which match my previous input. Something like: Type: > ssh press arrow-up: > ssh larry@google.com press arrow-up: > ssh mark@facebook.com

Ctrl+R.
Post reply on HN