4bb8bd80070a247d4500e57a768f3f1d984d29ba

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1135 from koraa/pull_req_sinchar

Singel character aliases (and combinations) for grep, wegt, cat, pagers, xargs, sudo and more

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/singlechar/singlechar.plugin.zsh b/plugins/singlechar/singlechar.plugin.zsh
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..44bd998aa56b1bd0099fb477fc3e1ea92aa5b2fd
  4--- /dev/null
  5+++ b/plugins/singlechar/singlechar.plugin.zsh
  6@@ -0,0 +1,133 @@
  7+################################################################################
  8+#          FILE:  singlechar.plugin.zsh
  9+#   DESCRIPTION:  oh-my-zsh plugin file.
 10+#        AUTHOR:  Michael Varner (musikmichael@web.de)
 11+#       VERSION:  1.0.0
 12+#
 13+# This plugin adds single char shortcuts (and combinations) for some commands.
 14+#
 15+################################################################################
 16+
 17+###########################
 18+# Settings 
 19+
 20+# These can be overwritten any time.
 21+# If they are not set yet, they will be
 22+# overwritten with their default values
 23+
 24+default GREP grep
 25+default ROOT sudo
 26+default WGET wget
 27+default CURL curl
 28+
 29+env_default PAGER less
 30+
 31+###########################
 32+# Alias
 33+
 34+# CAT, GREP, CURL, WGET
 35+
 36+alias y='"$GREP" -Ri'
 37+alias n='"$GREP" -Rvi'
 38+
 39+alias f.='find . | "$GREP"'
 40+alias f:='find'
 41+
 42+alias f='"$GREP" -Rli'
 43+alias fn='"$GREP" -Rlvi'
 44+
 45+alias w='echo >'
 46+alias a='echo >>'
 47+
 48+alias c='cat'
 49+alias p='"$PAGER"'
 50+
 51+alias m='man'
 52+
 53+alias d='"$WGET"'
 54+alias u='"$CURL"'
 55+
 56+# enhanced writing
 57+
 58+alias w:='cat >'
 59+alias a:='cat >>'
 60+
 61+# XARGS
 62+
 63+alias x='xargs'
 64+
 65+alias xy='xargs "$GREP" -Ri'
 66+alias xn='xargs "$GREP" -Riv'
 67+
 68+alias xf.='xargs find | "$GREP"'
 69+alias xf:='xargs find'
 70+
 71+alias xf='xargs "$GREP" -Rli'
 72+alias xfn='xargs "$GREP" -Rlvi'
 73+
 74+alias xw='xargs echo >'
 75+alias xa='xargs echo >>'
 76+
 77+alias xc='xargs cat'
 78+alias xp='xargs "$PAGER"'
 79+
 80+alias xm='xargs man'
 81+
 82+alias xd='xargs "$WGET"'
 83+alias xu='xargs "$CURL"'
 84+
 85+alias xw:='xargs cat >'
 86+alias xa:='xargs >>'
 87+
 88+# SUDO
 89+
 90+alias s='"$ROOT"'
 91+
 92+alias sy='"$ROOT" "$GREP" -Ri'
 93+alias sn='"$ROOT" "$GREP" -Riv'
 94+
 95+alias sf.='"$ROOT" find . | "$GREP"'
 96+alias sf:='"$ROOT" find'
 97+
 98+alias sf='"$ROOT" "$GREP" -Rli'
 99+alias sfn='"$ROOT" "$GREP" -Rlvi'
100+
101+alias sw='"$ROOT" echo >'
102+alias sa='"$ROOT" echo >>'
103+
104+alias sc='"$ROOT" cat'
105+alias sp='"$ROOT" "$PAGER"'