by williamdclt · 6y ago · 0 comments
- 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`
alias -g FORI='| while read i ; do '
alias -g IROF='; done ' alias -g Y="| yank -- cat "
[0] https://github.com/mptre/yankCould be clearer, basically it means that if it's part of a pipe, it's going to print to stdout instead of copying to the clipboard