singlechar.plugin.zsh 2.02 KB
Newer Older
mapc's avatar
mapc committed
1
2
###########################
# Settings 
mapc's avatar
mapc committed
3

mapc's avatar
mapc committed
4
5
6
7
8
9
# These can be overwritten any time.
# If they are not set yet, they will be
# overwritten with their default values

default GREP grep
default ROOT sudo
mapc's avatar
mapc committed
10
11
default WGET wget
default CURL curl
mapc's avatar
mapc committed
12

mapc's avatar
mapc committed
13
env_default PAGER less
mapc's avatar
mapc committed
14

mapc's avatar
mapc committed
15
16
17
###########################
# Alias

mapc's avatar
mapc committed
18
# CAT, GREP, CURL, WGET
19

mapc's avatar
mapc committed
20
21
alias y='"$GREP" -Ri'
alias n='"$GREP" -Rvi'
mapc's avatar
mapc committed
22

mapc's avatar
mapc committed
23
alias f.='find . | "$GREP"'
mapc's avatar
mapc committed
24
25
alias f:='find'

mapc's avatar
mapc committed
26
27
alias f='"$GREP" -Rli'
alias fn='"$GREP" -Rlvi'
mapc's avatar
mapc committed
28

mapc's avatar
mapc committed
29
30
alias w='echo >'
alias a='echo >>'
31

mapc's avatar
mapc committed
32
alias c='cat'
mapc's avatar
mapc committed
33
34
alias p='"$PAGER"'

mapc's avatar
Add Man    
mapc committed
35
36
alias m='man'

mapc's avatar
mapc committed
37
38
39
alias d='"$WGET"'
alias u='"$CURL"'

mapc's avatar
mapc committed
40
# enhanced writing
mapc's avatar
mapc committed
41
42
43
44

alias w:='cat >'
alias a:='cat >>'

45
46
# XARGS

mapc's avatar
mapc committed
47
alias x='xargs'
48

mapc's avatar
mapc committed
49
50
alias xy='xargs "$GREP" -Ri'
alias xn='xargs "$GREP" -Riv'
mapc's avatar
mapc committed
51

mapc's avatar
mapc committed
52
alias xf.='xargs find | "$GREP"'
mapc's avatar
mapc committed
53
54
alias xf:='xargs find'

mapc's avatar
mapc committed
55
56
alias xf='xargs "$GREP" -Rli'
alias xfn='xargs "$GREP" -Rlvi'
mapc's avatar
mapc committed
57

mapc's avatar
mapc committed
58
59
alias xw='xargs echo >'
alias xa='xargs echo >>'
60

mapc's avatar
mapc committed
61
alias xc='xargs cat'
mapc's avatar
mapc committed
62
63
alias xp='xargs "$PAGER"'

mapc's avatar
Add Man    
mapc committed
64
65
alias xm='xargs man'

mapc's avatar
mapc committed
66
67
68
alias xd='xargs "$WGET"'
alias xu='xargs "$CURL"'

mapc's avatar
mapc committed
69
70
71
alias xw:='xargs cat >'
alias xa:='xargs >>'

72
73
# SUDO

mapc's avatar
mapc committed
74
alias s='"$ROOT"'
75

mapc's avatar
mapc committed
76
77
alias sy='"$ROOT" "$GREP" -Ri'
alias sn='"$ROOT" "$GREP" -Riv'
mapc's avatar
mapc committed
78

mapc's avatar
mapc committed
79
alias sf.='"$ROOT" find . | "$GREP"'
mapc's avatar
Add Man    
mapc committed
80
alias sf:='"$ROOT" find'
mapc's avatar
mapc committed
81

mapc's avatar
mapc committed
82
83
alias sf='"$ROOT" "$GREP" -Rli'
alias sfn='"$ROOT" "$GREP" -Rlvi'
mapc's avatar
mapc committed
84

mapc's avatar
mapc committed
85
86
alias sw='"$ROOT" echo >'
alias sa='"$ROOT" echo >>'
mapc's avatar
mapc committed
87

mapc's avatar
mapc committed
88
alias sc='"$ROOT" cat'
mapc's avatar
mapc committed
89
90
alias sp='"$ROOT" "$PAGER"'

mapc's avatar
Add Man    
mapc committed
91
92
alias sm='"$ROOT" man'

mapc's avatar
mapc committed
93
94
alias sd='"$ROOT" "$WGET"'

mapc's avatar
mapc committed
95
96
97
alias sw:='"$ROOT" cat >'
alias sa:='"$ROOT" cat >>'

mapc's avatar
mapc committed
98
99
# SUDO-XARGS

mapc's avatar
mapc committed
100
alias sx='"$ROOT" xargs'
101

mapc's avatar
mapc committed
102
103
alias sxy='"$ROOT" xargs "$GREP" -Ri'
alias sxn='"$ROOT" xargs "$GREP" -Riv'
104

mapc's avatar
mapc committed
105
alias sxf.='"$ROOT" xargs find | "$GREP"'
mapc's avatar
mapc committed
106
107
108
109
110
alias sxf:='"$ROOT" xargs find'

alias sxf='"$ROOT" xargs "$GREP" -li'
alias sxfn='"$ROOT" xargs "$GREP" -lvi'

mapc's avatar
mapc committed
111
112
alias sxw='"$ROOT" xargs echo >'
alias sxa='"$ROOT" xargs echo >>'
mapc's avatar
mapc committed
113

mapc's avatar
mapc committed
114
alias sxc='"$ROOT" xargs cat'
mapc's avatar
mapc committed
115
116
alias sxp='"$ROOT" xargs "$PAGER"'

mapc's avatar
Add Man    
mapc committed
117
118
alias sxm='"$ROOT" xargs man'

mapc's avatar
mapc committed
119
alias sxd='"$ROOT" xargs "$WGET"'
mapc's avatar
mapc committed
120
121
122
alias sxu='"$ROOT" xargs "$CURL"'

alias sxw:='"$ROOT" xargs cat >'
otherpaco's avatar
otherpaco committed
123
alias sxa:='"$ROOT" xargs cat >>'