shell-snippets
Small, useful, copy-paste-friendly shell snippets for Fish and Zsh.
A collection of:
- aliases
- functions
- Fish abbreviations
- Git helpers
- navigation helpers
- tiny quality-of-life improvements
No giant shell framework.
Just snippets worth stealing.
Structure
shell-snippets/
├── fish/
│ ├── aliases.fish
│ ├── abbreviations.fish
│ └── functions.fish
├── zsh/
│ ├── aliases.zsh
│ └── functions.zsh
└── shared/
├── git.md
└── navigation.mdFish
Aliases
source fish/aliases.fishOr copy the aliases you want into:
~/.config/fish/config.fishFunctions
Fish functions can be placed in:
~/.config/fish/functions/or sourced directly.
mkcd and ginit require exactly one directory argument and preserve spaces in paths. vf uses $VISUAL, then $EDITOR, and finally vi as its editor.