Live data from Hacker News

Fish shell 2.1

fishshell.com

31–40 of 154 posts

Re: Fish shell 2.1

#31
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,…

For example, Dvorak layout helped me with wrist pains. I didn't lose ability to type on QWERTY after the transition, it's just less convenient to me now. That applies to all non-customized systems - they are are just less convenient, and that's about it.

I don't see any problem with using whatever pleases you (even if those are very obscure tools), if with transition you don't lose ability to use less convenient (but common) tools on occasion. And you usually don't lose that.

Re: Fish shell 2.1

#32
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…

Thank you, this is really good strategy, I had similar reservations about fish and I think this both makes sense and resolves them.

Re: Fish shell 2.1

#33

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

zsh does that

Re: Fish shell 2.1

#34

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

This is what the arrow-up key in ZSH does by default.

Re: Fish shell 2.1

#35

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

oh-my-zsh[1] does that for me. It's a pretty great function.

1. https://github.com/robbyrussell/oh-my-zsh

Re: Fish shell 2.1

#36
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,…

The argument that "fish is not customizable" is not true. Fish is customizable, but at the same time it hides unnecessary complexity from the user. For e.g. You can customize colors in fish, but you can't customize size of the history file (How many people do it ?). fish comes with sane defaults and most of the times you won't need to change any configurations unless you have very specific requirements.

Re: Fish shell 2.1

#37
I tried fish for a while but found it jarring switching between it and bash when working on remote machines where fish is not installed. I was also surprised when I first started using fish that it can't synchronize history between shell instances, which is a killer feature for me. So after about a month with fish I've switched to zsh.

https://github.com/fish-shell/fish-shell/issues/825

http://ptspts.blogspot.com/2011/03/how-to-automatically-sync...

Re: Fish shell 2.1

#38
I have used fish for a few months and I really liked it. I switched back to bash eventually because of a simple fact that esc-. didn't work in fish (which I use really often). If fish provides it, I will go back to fish.

Re: Fish shell 2.1

#39

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

bash: "\C-p": history-search-backward in ~/.inputrc

Re: Fish shell 2.1

#40
post #7

Thank you for your wonderful shell!!! I feel the lack of official distro packages (though the fish shell repository works fine)

Debian sid ('unstable') isn't hugely behind, at least by my standards of software upgrading. Fish 2.0.0 ended up in there about 8 weeks after release, and I'd expect 2.1.0 should get there in less time (2.0.0 was a change of upstream, and the first release in 4 years, while 2.1.0 is a relatively routine update from a distro's perspective).

I didn't know it was entered in sid, this is a good news; I hope it will enter in jessie too, since my servers use it
Post reply on HN