3 ms·
It is typical HN that everyone is talking about Zsh and how it isn't so bad. And you know what, I used it for a while long time ago, and it is great. I even had
by desireco42 5y ago
It is typical HN that everyone is talking about Zsh and how it isn't so bad. And you know what, I used it for a while long time ago, and it is great. I even had config I could transport to another machine when I need.
All that can't be compared with fish out of the box, which is why I am using fish, it will be 10 or so years now. When I say use, I mean that, I just use it, I don't spend time learning it's obscure features, creating scripts etc, no, just use it.
I have alias list that I use to make myself productive and it goes along with me to a new machine. Very slim and simple configuration. That and Vim, but that is another story.
- vorticalbox 5y agowhere does one put an alias ? i have a collection of them in my .zshrc that i would love to use.
- iamevn 5y agothey're just functions so they end up in files in ~/.config/fish/functions/ $ alias foo bar $ function foo --wraps bar --description 'alias foo=bar' bar $argv end these two are basically equivalent. you'll need to $ funcsave foo to make it persist. this will write foo.fish into that functions folder. there's also abbreviations like $ abbr --add ll ls -lh which expand as you type. ll won't end up in your history because it's expanded before that.
- tryptophan 5y agoAbbreviations are actually brilliant! So much better than aliases. Long live fish.
- yourad_io 5y agoOne of my favorite features. I counted then recently - over 100. The killer feature over aliases is that a) you can edit them and b) you can define them instantaneously. Did you type `git diff --cached` one time to many? Up arrow -> Ctrl+a -> "abbr gdc " <enter> Bam. `gdc<space|enter>` now expands to that. It's there forever. And that's how you end up with 100+ abbreviations.