singlechar.plugin.zsh 716 Bytes
Newer Older
mapc's avatar
mapc committed
1
2
3
4
5
6
7
8
9
10
11
12
13
###########################
# Settings 
#
# 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

###########################
# Alias

14
15
# CAT, GREP

mapc's avatar
mapc committed
16
17
18
alias y='"$GREP" -i'
alias n='"$GREP" -vi'

19
20
21
22
23
24
alias c='cat'
alias w='cat >'
alias a='cat >>'

# XARGS

mapc's avatar
mapc committed
25
alias x='xargs'
26

mapc's avatar
mapc committed
27
28
29
alias xy='xargs "$GREP" -i'
alias xn='xargs "$GREP" -iv'

30
31
32
33
34
35
alias xc='xargs cat'
alias xw='xargs cat >'
alias xa='xargs cat >>'

# SUDO

mapc's avatar
mapc committed
36
alias s='"$ROOT"'
37

mapc's avatar
mapc committed
38
alias sx='"$ROOT" xargs'
39

mapc's avatar
mapc committed
40
alias sxy='"$ROOT" xargs "$GREP" -i'
41
42
43
44
45
alias sxn='"$ROOT" xargs "$GREP" -iv'

alias sxc='"$ROOT" xargs cat'
alias sxw='"$ROOT" xargs cat >'
alias sxa='"$ROOT" xargs cat >>'