I use global aliases a lot, especially for pipes I use often. my main ones:
- alias -g G="| grep " (`cat test.txt G some_words`) - alias -g CC="| pbcopy " (`cat test.txt CC`) - alias -g "?"="| fzf " (`ls -l ?`) - alias -g X="| xargs " (`ls -l X rm`), probably my favorite (makes xargs kinda look like a pipe) - alias -g Y="| yank "
They compose well, too.
- Pick some file to delete from `git status`: `git status Y X rm`