by sisk · 1y ago · 0 comments
alias -g ag='2>&1 | grep'
some-command ag 'words' # equivalent to: some-command 2>&1 | grep 'words' alias -g L="| less"
alias -g T="| tee"
alias -g C="| pbcopy"
alias -g @all="> /dev/null 2>&1"
if command -v rg > /dev/null; then
alias -g G="| rg"
else
alias -g G="| grep"
fi