Live data from Hacker News

Zsh is your friend.

mikegrouchy.com

111–117 of 117 posts

Re: Zsh is your friend.

#111

Earlier quoted context omitted.

Edit: I meant term-mode (M-x term), not terminal-mode (M-x terminal-emulator). No idea why there are two different terminal emulators in Emacs, but 'M-x term' seems the better of the two, or at least the keybindings make more sense to me. There is also 'M-x serial-term' should you ever need it.

There are M-x shell and M-x eshell to run shells within emacs. See http://www.masteringemacs.org/articles/2010/11/01/running-sh... for comparison.

Yes. My original comment (the grandparent to your comment) attempted to explain why I prefer term-mode over shell-mode.

Re: Zsh is your friend.

#112
post #77

Earlier quoted context omitted.

I tried that and about a million other things in Ubuntu. When I hit tab I see options, but nothing I put in my .zshrc will allow me to use the arrow keys or anything else to navigate the completion list. I am using oh my zsh but I tried turning it off and it didn't seem to matter. Maybe only Mac users use zsh?

With the default oh-my-zsh config, you have to hit tab two times, for example ls

Wow! I would have never thought of that.. lol

Thanks a lot.. works.

Re: Zsh is your friend.

#113
post #82
post #10

Due to the poor spelling and grammar, gross oversimplification of zsh's advantages, and the inclusion of oh-my-zsh as a reason to switch, I found this post insulting (as a long time zsh user). And I actually want more people to use zsh, because that would mean more collaboration, more tips, and better script compatibility.

and the inclusion of oh-my-zsh as a reason to switch That's the reason why I switched. Perhaps I'm missing something: what's wrong with 'oh-my-zsh'?

A person could easily get into the habit of using oh-my-zsh plugins and themes without reading or understanding them. I'm not saying that it's universally the case, just that it's possible. With that in mind, it might not be too difficult to include malicious code therein. It also is a good way to "introduce" non-existent bugs. If I'm not mistaken, this is the reason that the zsh Debian maintainers have refused to consider including it in main.

Re: Zsh is your friend.

#114

Earlier quoted context omitted.

I tried out fish a month back, but got stuck on 2 things, one which i use frequently. 1. I use the Alt-. (dot) to get last argument of previous command. 2. Getting output of previous command such as : `!!` (backtick !! backtick) for which I get a "no such file". I asked on reddit, but got no replies. Thx.

!! is not specific to fish. It is a history feature to get the last command. It's like using '!ec' for getting the last command that starts with 'ec'. Using `!!` is not "getting output of previous command", it is re-executing it and getting that output. For that alt+. tip, I'd use the special $_ var.

You haven't told me how to do a `!!` in fish. (I do understand that it re-executes the previous command). I am used to using this in other shells like bash and zsh, and would like to know if there's some way of doing it in fish.

Re: Zsh is your friend.

#115
post #95

Earlier quoted context omitted.

Care to post your .zshrc? Edit: I have setopt correctcall and I do not get this behaviour. On an unrelated not, this is a classic example of complaining about why a product doesn't work and having users jump at the chance to fix your issue to prove it's worth. But how to monitize this... :)

lol, guilty.... where do I send my micro-payment ;o)

Woah. Micro? I'm playing the big numbers game with small amounts of customers ;)

Re: Zsh is your friend.

#116

I wish the author had put the settings used to get those effects. Unless they are default? It's probably just formatting?

some of them are the built in oh-my-zsh things, but I added some of the settings in the posts comments for people who asked. Is there something particular you are looking for?

I was wondering how you got this so pretty? http://mikegrouchy.com/media/images/2012/01/zshkillcompletio...

I don't get the username either.

Re: Zsh is your friend.

#117

Earlier quoted context omitted.

!! is not specific to fish. It is a history feature to get the last command. It's like using '!ec' for getting the last command that starts with 'ec'. Using `!!` is not "getting output of previous command", it is re-executing it and getting that output. For that alt+. tip, I'd use the special $_ var.

You haven't told me how to do a `!!` in fish. (I do understand that it re-executes the previous command). I am used to using this in other shells like bash and zsh, and would like to know if there's some way of doing it in fish.

AFAIK this is not possible with fish, as variables cannot be used as commands like in bash (and the ! history feature does not exist in fish, it is designed to be fully interactive).

See http://fishshell.com/user_doc/faq.html#faq-history

Post reply on HN