Update zshrc

This commit is contained in:
Riyyi
2018-10-16 19:07:33 +02:00
parent 458815ece2
commit 34879bebec
2 changed files with 54 additions and 34 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
depend() {
pactree -u -d 1 $1 | tail -n +2
}
jdoc() {
mkdir -p './doc';
javadoc -d './doc' *.java
}
jr() {
mkdir -p './out';
javac -d './out' "$1.java";
java -cp './out' "$1"
}
raspbian() {
sudo systemctl start avahi-daemon.service
if ! ip a show usb0 | grep -q 'inet6'; then
sudo dhcpcd usb0
fi
ssh -6 pi@$(avahi-resolve-host-name raspberrypi.local | awk '{ print $2 }')%usb0
sudo systemctl stop avahi-daemon.service
}
"$@"