Live data from Hacker News

Fish shell 2.1

fishshell.com

41–50 of 154 posts

Re: Fish shell 2.1

#41

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

fish does this too when you press up arrow key.

Re: Fish shell 2.1

#42

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

You can do that in bash with ctrl+r:

Type: ctrl+r

Type: ssh

Bash says:

(reverse-i-search)`ssh': ssh dude@somewhere.com

Type again: ctrl+r

(reverse-i-search)`ssh': ssh someoneelse@elsewhere.com

Re: Fish shell 2.1

#43

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

Fish does that by default.

Re: Fish shell 2.1

#44

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

Not exactly what you're asking for but: Alt + Up might help.

From the docs: Alt-Up and Alt-Down search the command history for the previous/next token containing the token under the cursor before the search was started. If the commandline was not on a token when the search started, all tokens match. See the history section for more information on history searching. [1]

[1] - http://fishshell.com/docs/2.1/

Re: Fish shell 2.1

#45
post #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/201…

+1 for this feature, I think it is neat too

Re: Fish shell 2.1

#46
post #40

Earlier quoted context omitted.

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

Should be in jessie (the current 'testing') too, as of July 22: http://packages.qa.debian.org/f/fish.html

Re: Fish shell 2.1

#47

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

In my Fedora Linux bash page-up works like that.

Re: Fish shell 2.1

#48
post #9
post #5

Earlier quoted context omitted.

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

I actually have an even more complete version of this which allows changing the Go shell cleanly. Dump https://gist.github.com/bpollack/7197532 in your .config/fish/functions directory and you should be good to go.

Re: Fish shell 2.1

#49

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

Thanks for all the tips! :)

Re: Fish shell 2.1

#50
post #40

Earlier quoted context omitted.

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

Should be in jessie (the current 'testing') too, as of July 22: http://packages.qa.debian.org/f/fish.html

Great, I can start using it on the servers too! Thanks a lot
Post reply on HN