This is a collection of dotfiles and scripts for my bspwm setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
706 B

6 years ago
#!/bin/bash
man() {
LESS_TERMCAP_mb=$'\e[01;31m' \
LESS_TERMCAP_md=$'\e[01;34m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_so=$'\e[00;37m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_us=$'\e[04;95m' \
LESS_TERMCAP_ue=$'\e[0m' \
command man "$@"
}
6 years ago
depend() {
pactree -u -d 1 $1 | tail -n +2
}
java-doc() {
6 years ago
mkdir -p './doc';
javadoc -d './doc' *.java
}
java-run() {
6 years ago
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
}
"$@"