Live data from Hacker News

Fish shell 2.1

fishshell.com

131–140 of 154 posts

Re: Fish shell 2.1

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

Why get a nice car and customize it when you know you'll eventually have to drive someone else's shitbox Ford Focus? Your seat warmer and ergonomic gearshift handle will help you not a whit in that testament to True Detroit Steel.

Re: Fish shell 2.1

#133
post #103

Earlier quoted context omitted.

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.

Being able to set a very high limit for my history file and to share history between instances is a major usability feature in zsh for me. Not being able to do that is honestly reason enough to rule out an alternative shell.

250k items is not enough for your history file?

Also, fish shares the history between the shells out of the box, unlike zsh... but it chose to do it in a different way (that is, commands are available even if one of the shells hasn't been closed, unlike bash... but they aren't available right away after entering a single new command, like most zsh configurations that I've seen)

Re: Fish shell 2.1

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

For vim at least you can put 'set shell=bash' in your .vimrc and it will use bash instead.

Re: Fish shell 2.1

#136

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

Not sure if that's what you want, but have you tried this in your .inputrc? "\e[B": history-search-forward "\e[A": history-search-backward

You can also put this in your bashrc:

  bind '"\e[A":history-search-backward'
  bind '"\e[B":history-search-forward'
It's one of the things I always tell people to use since it makes using bash so much easier.

Re: Fish shell 2.1

#137

Earlier quoted context omitted.

Im using oh-my-zsh, but I cant find this one. Care to enlighten me which option or plugin I should enable? :) Edit: Seems ctrl-up and ctrl-down does the trick.

I'm using https://github.com/zsh-users/zsh-history-substring-search It emulates the Fish behavior (which is just awesome). I'm not sure if it requires oh-my-zsh, but I think it doesn't.

It's actually a plugin bundled with oh-my-zsh, but I copy-pasted the default keybindings from the github page you linked, and it's indeed pretty awesome.

Re: Fish shell 2.1

#138
post #128

can anybody tell me why this Fish shell shows some files by adding "*" at the end of it?

Those files are executables. There is a function 'ls' which wraps ls command and adds --indicator-style=classify parameter to make output more readable.

Re: Fish shell 2.1

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

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…

Well said. I try to optimize for happiness and I'm much happier using fish than bash (which I'm reminded of every time I have to temporarily use bash).
Post reply on HN