2
0

singlechar.plugin.zsh 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ###########################
  2. # Settings
  3. # These can be overwritten any time.
  4. # If they are not set yet, they will be
  5. # overwritten with their default values
  6. default GREP grep
  7. default ROOT sudo
  8. default WGET wget
  9. default CURL curl
  10. env_default PAGER less
  11. ###########################
  12. # Alias
  13. # CAT, GREP, CURL, WGET
  14. alias y='"$GREP" -Ri'
  15. alias n='"$GREP" -Rvi'
  16. alias f.='find . | "$GREP"'
  17. alias f:='find'
  18. alias f='"$GREP" -Rli'
  19. alias fn='"$GREP" -Rlvi'
  20. alias w='echo >'
  21. alias a='echo >>'
  22. alias c='cat'
  23. alias p='"$PAGER"'
  24. alias m='man'
  25. alias d='"$WGET"'
  26. alias u='"$CURL"'
  27. # enhanced writing
  28. alias w:='cat >'
  29. alias a:='cat >>'
  30. # XARGS
  31. alias x='xargs'
  32. alias xy='xargs "$GREP" -Ri'
  33. alias xn='xargs "$GREP" -Riv'
  34. alias xf.='xargs find | "$GREP"'
  35. alias xf:='xargs find'
  36. alias xf='xargs "$GREP" -Rli'
  37. alias xfn='xargs "$GREP" -Rlvi'
  38. alias xw='xargs echo >'
  39. alias xa='xargs echo >>'
  40. alias xc='xargs cat'
  41. alias xp='xargs "$PAGER"'
  42. alias xm='xargs man'
  43. alias xd='xargs "$WGET"'
  44. alias xu='xargs "$CURL"'
  45. alias xw:='xargs cat >'
  46. alias xa:='xargs >>'
  47. # SUDO
  48. alias s='"$ROOT"'
  49. alias sy='"$ROOT" "$GREP" -Ri'
  50. alias sn='"$ROOT" "$GREP" -Riv'
  51. alias sf.='"$ROOT" find . | "$GREP"'
  52. alias sf:='"$ROOT" find'
  53. alias sf='"$ROOT" "$GREP" -Rli'
  54. alias sfn='"$ROOT" "$GREP" -Rlvi'
  55. alias sw='"$ROOT" echo >'
  56. alias sa='"$ROOT" echo >>'
  57. alias sc='"$ROOT" cat'
  58. alias sp='"$ROOT" "$PAGER"'
  59. alias sm='"$ROOT" man'
  60. alias sd='"$ROOT" "$WGET"'
  61. alias sw:='"$ROOT" cat >'
  62. alias sa:='"$ROOT" cat >>'
  63. # SUDO-XARGS
  64. alias sx='"$ROOT" xargs'
  65. alias sxy='"$ROOT" xargs "$GREP" -Ri'
  66. alias sxn='"$ROOT" xargs "$GREP" -Riv'
  67. alias sxf.='"$ROOT" xargs find | "$GREP"'
  68. alias sxf:='"$ROOT" xargs find'
  69. alias sxf='"$ROOT" xargs "$GREP" -li'
  70. alias sxfn='"$ROOT" xargs "$GREP" -lvi'
  71. alias sxw='"$ROOT" xargs echo >'
  72. alias sxa='"$ROOT" xargs echo >>'
  73. alias sxc='"$ROOT" xargs cat'
  74. alias sxp='"$ROOT" xargs "$PAGER"'
  75. alias sxm='"$ROOT" xargs man'
  76. alias sxd='"$ROOT" xargs "$WGET"'
  77. alias sxu='"$ROOT" xargs "$CURL"'
  78. alias sxw:='"$ROOT" xargs cat >'
  79. alias sxa:='"$ROOT" xargs cat >>'