mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
Add cat (+write, +append), enhance formatting
This commit is contained in:
parent
fcb153c2e3
commit
f970d8206e
1 changed files with 22 additions and 1 deletions
|
@ -11,14 +11,35 @@ default ROOT sudo
|
||||||
###########################
|
###########################
|
||||||
# Alias
|
# Alias
|
||||||
|
|
||||||
|
# CAT, GREP
|
||||||
|
|
||||||
alias y='"$GREP" -i'
|
alias y='"$GREP" -i'
|
||||||
alias n='"$GREP" -vi'
|
alias n='"$GREP" -vi'
|
||||||
|
|
||||||
|
alias c='cat'
|
||||||
|
alias w='cat >'
|
||||||
|
alias a='cat >>'
|
||||||
|
|
||||||
|
# XARGS
|
||||||
|
|
||||||
alias x='xargs'
|
alias x='xargs'
|
||||||
|
|
||||||
alias xy='xargs "$GREP" -i'
|
alias xy='xargs "$GREP" -i'
|
||||||
alias xn='xargs "$GREP" -iv'
|
alias xn='xargs "$GREP" -iv'
|
||||||
|
|
||||||
|
alias xc='xargs cat'
|
||||||
|
alias xw='xargs cat >'
|
||||||
|
alias xa='xargs cat >>'
|
||||||
|
|
||||||
|
# SUDO
|
||||||
|
|
||||||
alias s='"$ROOT"'
|
alias s='"$ROOT"'
|
||||||
|
|
||||||
alias sx='"$ROOT" xargs'
|
alias sx='"$ROOT" xargs'
|
||||||
|
|
||||||
alias sxy='"$ROOT" xargs "$GREP" -i'
|
alias sxy='"$ROOT" xargs "$GREP" -i'
|
||||||
alias sxn='"$ROOT" xargs "$GREP" -iv'
|
alias sxn='"$ROOT" xargs "$GREP" -iv'
|
||||||
|
|
||||||
|
alias sxc='"$ROOT" xargs cat'
|
||||||
|
alias sxw='"$ROOT" xargs cat >'
|
||||||
|
alias sxa='"$ROOT" xargs cat >>'
|
||||||
|
|
Loading…
Reference in a new issue