iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c0cc9bc
)
better host change funcs
author
Ian Kelling
<iank@fsf.org>
Wed, 3 Apr 2019 01:02:37 +0000
(21:02 -0400)
committer
Ian Kelling
<iank@fsf.org>
Wed, 3 Apr 2019 01:02:37 +0000
(21:02 -0400)
brc
patch
|
blob
|
history
diff --git
a/brc
b/brc
index 6389c0466b5ce31d4f602f672c7da95cbbe2755b..039fb7ee949281c863321aaaedf5127796d0fbfc 100644
(file)
--- a/
brc
+++ b/
brc
@@
-1766,12
+1766,19
@@
tm() {
(sleep $(calc "$@ * 60") && mpv --no-config --volume 50 /a/bin/data/alarm.mp3) > /dev/null 2>&1 &
}
(sleep $(calc "$@ * 60") && mpv --no-config --volume 50 /a/bin/data/alarm.mp3) > /dev/null 2>&1 &
}
-
tpx2
() {
+
bpush
() {
case $HOSTNAME in
tp) target=x2 ;;
x2) target=tp ;;
esac
case $HOSTNAME in
tp) target=x2 ;;
x2) target=tp ;;
esac
- btrbk-run -t $target -pv && switch-mail-host $HOSTNAME $target
+ btrbk-run -t $target && switch-mail-host $HOSTNAME $target
+}
+bpull() {
+ case $HOSTNAME in
+ tp) source=x2 ;;
+ x2) source=tp ;;
+ esac
+ btrbk-run -s $source && switch-mail-host $source $HOSTNAME
}
trg() { transmission-remote-gtk&r; }
}
trg() { transmission-remote-gtk&r; }