-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc
More file actions
31 lines (26 loc) · 666 Bytes
/
bashrc
File metadata and controls
31 lines (26 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# BEGIN SPEC
# SPEC tcpdump
if $(command -v tcpdump >/dev/null 2>&1) ; then
_TCPDUMP=$(whereis tcpdump | cut -d" " -f2)
alias tcpdump.nocolors="exec $_TCPDUMP $@"
function tcpdump () {
if [[ $1 =~ "-n" ]] ; then
exec $_TCPDUMP -Ul $@ | spec
else
exec $_TCPDUMP $@
fi
}
fi
# SPEC tshark
if $(command -v tshark >/dev/null 2>&1) ; then
_TSHARK=$(whereis tshark | cut -d" " -f2)
alias tshark.nocolor="exec $_TSHARK $@"
function tshark () {
if [[ $1 =~ "-n" ]] ; then
exec $_TSHARK -l $@ | spec
else
exec $_TSHARK $@
fi
}
fi
# END SPEC