Last active
June 2, 2021 20:45
-
-
Save qwinters/e27b708487891a08ac11f2936489e390 to your computer and use it in GitHub Desktop.
ZSH Piping Aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# One letter shortcuts | |
alias -g C="| pbcopy " | |
alias -g D="| tr -d " | |
alias -g G="| grep -i " | |
alias -g H="| head " | |
alias -g Q="> /dev/null 2>&1 " | |
alias -g R="| tr " | |
alias -g S="| sort " | |
alias -g T="| tail " | |
alias -g U="| uniq -c " | |
# Sensible SQL-esque style aliases | |
alias -g COPY="| pbcopy " | |
alias -g COUNT="| wc -l " | |
alias -g DELETE="| tr -d " | |
alias -g DISTINCT="| uniq -c " | |
alias -g GREP="| grep -i " | |
alias -g HEAD="| head " | |
alias -g NOERR="2> /dev/null " | |
alias -g QUIET="> /dev/null 2>&1 " | |
alias -g REPLACE="| tr " | |
alias -g SORT="| sort " | |
alias -g TAIL="| tail " | |
alias -g UNIQUE="| uniq -c " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment