3 ms·
For shell stuff, I use fish, and my fish config has a bunch of if...end blocks around most things, for example: ```if command -q exa alias ls="exa" ali
by yonatan8070 1y ago
For shell stuff, I use fish, and my fish config has a bunch of if...end blocks around most things, for example:
```if command -q exa
alias ls="exa"
alias ll="exa -lah"
alias tree="exa --tree"
end
if command -q eza
alias ls="eza"
alias ll="eza -lah"
alias tree="eza --tree"
end```
- hk1337 1y agoFish seems to keep it contained to .config/fish which is nice. Most others tend to spread out outside of .config I’ve started modeling fish with zsh and OMZ customs
- setopt 1y agoThis plugin simplifies that workflow: https://github.com/jabirali/fish-abbrfile https://github.com/jabirali/fish-abbrfile
- yonatan8070 1y agoThat's pretty neat, thanks!