4 ms·
where does one put an alias ? i have a collection of them in my .zshrc that i would love to use.
by vorticalbox 5y ago
where 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.