install-my-scripts
switch-mail-host $HOSTNAME $1
}
+lipush() {
+ rsync $@ --delete-excluded -ahviSAXPH --specials --devices --delete --relative \
+ --exclude-from=/p/c/li-rsync-excludes /a/bin /a/exe /a/h /a/c /p/c/machine_specific/li /a/opt/{emacs,emacs-debianstable,mu} root@li:/
+}
+lipushnoe() {
+ rsync $@ --delete-excluded -ahviSAXPH --specials --devices --delete --relative \
+ --exclude-from=/p/c/li-rsync-excludes /a/bin /a/exe /a/h /a/c /p/c/machine_specific/li root@li:/
+}
btc() {
sudo virsh dumpxml $2|grep "<graphics.*type='spice'" | \
sed -rn "s/.*port='([0-9]+).*/\1/p"
EOF
- )
+ )
if [[ $port ]]; then
spicy -h $1 -p $port
else
if [[ -e $1 && ! -w $1 || ! -w $(dirname "$1") ]]; then
s=s;
fi
- $s teeu "$@"
+ # full path for using in some initial setup steps
+ $s /a/exe/teeu "$@"
}
tx() { # toggle set -x, and the prompt so it doesnt spam