Live data from Hacker News

Fish shell 2.1

fishshell.com

111–120 of 154 posts

Re: Fish shell 2.1

#111
post #35

Earlier quoted context omitted.

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

This seems to have been broken for me unless I add DEBIAN_PREVENT_KEYBOARD_CHANGES=yes to my .zshenv. I'm not sure if it was an update to ZSH, oh-my-zsh, or Ubuntu that causes the issue.

Re: Fish shell 2.1

#112
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?

As someone who has used an increasingly customized *nix command-line environment for decades, I'll say that this corner-case occupies a vanishingly small amount of my time. I just doesn't make sense to optimize for it. I currently use zsh, which is frequently not available by default. This implies installing a package, and I don't see how that's any worse for fish. I freely admit that my workflow as a developer vs. (e.g.) a sysadmin provides a greater degree of relative control over my day-to-day working environments.

I do have to work in non-customized environments from time to time. I find this no worse than using Someone Else's Keyboard -- maybe there's some clumsiness at first, but you soon get the hang of it. If you switch environments frequently, the switch becomes unnoticeable.

That said, I've also put continual effort into portability and ease of deployment of my customizations over the years. I can run one command on a networked host and have my rcfiles land there and be ready to use. This is pretty easy to do with a git-managed homedir repo, especially on a provider like GitHub where you can fall back to grabbing tarball if needed. I currently use vcsh[1] & mr[2] to manage my repos -- for that I use a bootstrap script hosted in an orphan branch of the same repo.[2] An efficient setup process of this type also makes it easy to integrate with provisioning tools, e.g. Puppet, Chef, or even just shell scripts.

[1] https://github.com/RichiH/vcsh

[2] http://myrepos.branchable.com/

[3] https://github.com/jwhitley/vcsh-root/tree/bootstrap

Re: Fish shell 2.1

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

Great point, my iPad doesn't even have an addressable kernel, let alone a terminal emulator or command line! Why bothering to learn how to drive a car, I'm not even in a car right now, what would I drive?! Is having the freedom to move from place to place REALLY worth it?

Re: Fish shell 2.1

#114
post #7

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

Thanks for your feedback. Let me just pinpoint it to other users that from this release you can now subscribe to fish shell's repositories by following instructions at http://fishshell.com/files/2.1.0/linux/index.html

You should try to get included in a mainstream distro like Arch.

Re: Fish shell 2.1

#115

Earlier quoted context omitted.

I am not convinced. How much time can I spend on customizing something to be more convenient and still save time in the long run? Can I spend half an hour to speed up a task I do daily by five minutes? Can I spend a month learning Emacs and save time in the long run? Can I spend two weeks learning how to touch-type? The answers invariably are very much dependent on your personal work. But to me, the far more importan…

Actually, that's a calculate-able thing, and Xkcd has already saved us the time: http://xkcd.com/1205/

I have the same comic posted over my desk. I've wondered in the past why the author didn't bother including the cases of 6 hours/day or 1 day/week saved, although I'll admit I have yet to accomplish anything that impressive. I'll just keep it as long term goal to prove the edge cases in xkcd comics wrong. :)

Re: Fish shell 2.1

#116

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

Tcsh does just that by default (at least on FreeBSD).

Re: Fish shell 2.1

#117

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

I have been doing this for over a decade with csh.

Re: Fish shell 2.1

#118
post #62

Earlier quoted context omitted.

Are we going to use sh and its descendants for the next 100 years? The original shells evolved out of macro processors, and as time went on, more and more programming language features were bolted on, but it's an uneasy fit. Take it for a test: go write a project euler problem (or any small programming task--doesn't have to be math) in your shell of choice. It's painful. There are weird features of shell languages th…

I don't think we are disagreeing. From the tutorial in the OP: "If you have a strong understanding of other shells, and want to know what fish does differently, search for the magic phrase unlike other shells , which is used to call out important differences." "stdin and stdout can be redirected via the familiar . Unlike other shells , stderr is redirected with a caret ^" That's pretty, no argument there. But I alrea…

The syntax highlighting is 90% of why I use it, everything else is gravy.

Re: Fish shell 2.1

#119
I've been using Fish for a year now, it's really amazing. Not going back to bash or even zsh.

The only problem I had was getting all vim plugins to work with it, but then I discovered that you can set the shell vim shall use in .vimrc (I set it to sh) and now everything works like a charm.

BTW, I'm loving the fuzzy autocompletion, it's truly a "killing feature".

Re: Fish shell 2.1

#120
As a systems engineer, I'm stuck using (mostly) vanilla bash. I'd love to dabble in fish or zsh, but anytime I start it becomes a waste of time.

Upside is I know bash ins and outs :). I'm usually the one-liner wizard of the office.

Post reply on HN