Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
f970d820
Commit
f970d820
authored
May 05, 2012
by
mapc
Browse files
Add cat (+write, +append), enhance formatting
parent
fcb153c2
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/singlechar/singlechar.plugin.zsh
View file @
f970d820
...
@@ -11,14 +11,35 @@ default ROOT sudo
...
@@ -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 >>'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment