added gocd, which will cd you into a go project from anywhere

osx
Adam Veldhousen 8 years ago
parent 812385ab1f
commit fab38eb51a
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -72,6 +72,15 @@ function dumptcp(){
sudo tcpdump -s 0 -A -i $DUMPINTERFACE "tcp port $DUMPPORT and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)"
}
function gocd(){
if [ -z "$1" ]; then
cd $GOPATH;
return 0;
fi
cd $(go list -f '{{ .Dir }}' $1)
}
function interfaces(){
ifconfig | grep "\: flags" | awk '{print $1}' | sed 's/:$//';
}

Loading…
Cancel
Save