Live data from Hacker News

Fish shell 2.1

fishshell.com

81–90 of 154 posts

Re: Fish shell 2.1

#82
post #68
post #59

Earlier quoted context omitted.

I really don't think that zsh is born of some desire to keep things from getting messy. That doesn't seem to be what it does in practice anyway, particularly with the popularity of things like oh-my-zsh. Rather I think zsh is born from a desire to have more . More functionality and more customization options. > What do you do when you have to use a computer without your customization? How are people running into this…

I'm kind of posting too much so I'll stop, I really tried to phrase my questions in a friendly manner but it seems they invite misreadings. Apologies. One final clarification: I agree with this attitude if indeed this was the case. I don't see how zsh or fish constitute cordless drills and screwdrivers, it feels more like they are the right-y version to the left-y version of the regular screwdriver. But maybe its bec…

imho, this is a large portion of the killer feature of zsh: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html

Re: Fish shell 2.1

#84

"Previously, a single % would pid-expand to either all backgrounded jobs, or all jobs owned by your user. Now it expands to the last job backgrounded. If no job is in the background, it will fail to expand. In particular, fg % can be used to put the most recent background job in the foreground." oh! Can fish background tasks now? I haven't being following very closely, I really should update my shell.

The major change here is that `kill -9 %` with no backgrounded tasks would kill all of your processes (before Fish 2.1).

There's now a guarantee that `%` expands to either the last process backgrounded or an error.

Re: Fish shell 2.1

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

vim?

Re: Fish shell 2.1

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

Side attack against Plan 9? Plan 9 is neat ;) (and zsh too, I still have found no reason to spend more than 10 minutes with Fish with every new release)

Re: Fish shell 2.1

#87
post #44

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 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/

Up does this by default. Alt+Up is useful for searching a single word through history

I know of three history completion modes in fish.

Full command search: start typing a command and press Up. This will search for entire commands matching your query.

Word search: type any letters in a command, then press Alt+Up. This will cycle only the current word based on a substring match of your query. Useful for hostnames, filenames, etc.

Context-sensitive: If fish 'previews' the rest of a line as a lighter color text, press the right arrow key to complete. This is sensitive to the current directory and available files. If you go into a directory, `touch filename`, `cat filename`, and type `cat`, it will preview `cat filename` for you. Pressing the right arrow key will type it. If you `rm filename` or change directory, `cat filename` will no longer appear.

Re: Fish shell 2.1

#89
post #53
post #29

Earlier quoted context omitted.

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.

As a zsh user, I am not really seeing the problem. Even Solaris had zsh in the default install. I don't see why avoiding installing an rpm/deb is any better or worse than not. For regular shell scripts I tend to still prefer #!/bin/ksh and not bourne shell (no bash is not bourne shell). I have to admit the line of thinking you're advocating reminds me of the vim/emacs "wars". With the "vim is on ALL THE SERVERS", wel…

  Even Solaris had zsh in the default install.
Actually, it's still part of the "default" group packages (similar to an installation profile).

The default shell for new users (including root) is now bash though.

Re: Fish shell 2.1

#90

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.

You get this with Alt-Up on an empty argument (so after pressing space). Unlike bash, you can keep holding Alt and press Up repeatedly to cycle through arguments and previous commands.

If you want to be more precise, typing anything in the current argument before pressing the shortcut will do a substring search.

Post reply on HN