Skip to content

Tag: scripting

FreeBSD tcsh notes

There there are some notes/tricks about tcsh.

To set a nice tcsh prompt, try the following:
set prompt = "%{\033[0;1;37m%}%n%{\033[0;1;31m%}@%{\033[0;1;37m%}%m%{\033[0;1;33m%}:%{\033[0;1;32m%}%b%/%{\033[0;1;0m%} %# "

Some usefull alias to include in our ~/.tcshrc
alias wifilist "(ifconfig ath0_wlan0 list scan | sort -rnk 5 | grep -v BSSID)"
alias sniff-vpn tcpdump ‘-U -n -l -t -i ovpnc1 "$*"’
alias sniff-wifi tcpdump ‘-U -n -l -t -i ath0_wlan0 "$*"’
alias sniff-fw tcpdump ‘-n -l -t -i pflog0 "$*"’