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
67290ffc
Commit
67290ffc
authored
May 05, 2012
by
mapc
Browse files
Enhance writing routines
parent
88f3f28e
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/singlechar/singlechar.plugin.zsh
View file @
67290ffc
...
...
@@ -30,15 +30,20 @@ env_default PAGER less
alias
y
=
'"$GREP" -i'
alias
n
=
'"$GREP" -vi'
alias
c
=
'cat'
alias
w
=
'cat >'
alias
a
=
'cat >>'
alias
w
=
'echo >'
alias
a
=
'echo >>'
alias
c
=
'cat'
alias
p
=
'"$PAGER"'
alias
d
=
'"$WGET"'
alias
u
=
'"$CURL"'
# enhanced writeing
alias
w:
=
'cat >'
alias
a:
=
'cat >>'
# XARGS
alias
x
=
'xargs'
...
...
@@ -46,15 +51,18 @@ alias x='xargs'
alias
xy
=
'xargs "$GREP" -i'
alias
xn
=
'xargs "$GREP" -iv'
alias
xc
=
'xargs cat'
alias
xw
=
'xargs cat >'
alias
xa
=
'xargs cat >>'
alias
xw
=
'xargs echo >'
alias
xa
=
'xargs echo >>'
alias
xc
=
'xargs cat'
alias
xp
=
'xargs "$PAGER"'
alias
xd
=
'xargs "$WGET"'
alias
xu
=
'xargs "$CURL"'
alias
xw:
=
'xargs cat >'
alias
xa:
=
'xargs >>'
# SUDO
alias
s
=
'"$ROOT"'
...
...
@@ -62,14 +70,17 @@ alias s='"$ROOT"'
alias
sy
=
'"$ROOT" "$GREP" -i'
alias
sn
=
'"$ROOT" "$GREP" -iv'
alias
sc
=
'"$ROOT" cat'
alias
sw
=
'"$ROOT" cat >'
alias
sa
=
'"$ROOT" cat >>'
alias
sw
=
'"$ROOT" echo >'
alias
sa
=
'"$ROOT" echo >>'
alias
sc
=
'"$ROOT" cat'
alias
sp
=
'"$ROOT" "$PAGER"'
alias
sd
=
'"$ROOT" "$WGET"'
alias
sw:
=
'"$ROOT" cat >'
alias
sa:
=
'"$ROOT" cat >>'
# SUDO-XARGS
alias
sx
=
'"$ROOT" xargs'
...
...
@@ -77,11 +88,14 @@ alias sx='"$ROOT" xargs'
alias
sxy
=
'"$ROOT" xargs "$GREP" -i'
alias
sxn
=
'"$ROOT" xargs "$GREP" -iv'
alias
sxc
=
'"$ROOT" xargs cat'
alias
sxw
=
'"$ROOT" xargs cat >'
alias
sxa
=
'"$ROOT" xargs cat >>'
alias
sxw
=
'"$ROOT" xargs echo >'
alias
sxa
=
'"$ROOT" xargs echo >>'
alias
sxc
=
'"$ROOT" xargs cat'
alias
sxp
=
'"$ROOT" xargs "$PAGER"'
alias
sxd
=
'"$ROOT" xargs "$WGET"'
alias
sxu
=
'"$ROOT" xargs "$CURL"'
\ No newline at end of file
alias
sxu
=
'"$ROOT" xargs "$CURL"'
alias
sxw:
=
'"$ROOT" xargs cat >'
alias
sxa:
=
'"$ROOT" xargs cat >>'
\ No newline at end of file
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