From: Nicolas Boisselier Date: Tue, 17 Mar 2015 21:52:01 +0000 (+0000) Subject: new functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=bfd38e6f1d5e472427b2c77bcd2ba7bc43114ca3;p=nb.git new functions --- diff --git a/etc/bashrc.function b/etc/bashrc.function index 8596e2ae..58c2949b 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -262,7 +262,7 @@ nb-alert() { cmd=". $NB_ROOT/etc/profile.sh && $cmd" local ip=`dig +short $host` [ -z "$ip" ] && echo "Can't resolve macbook.brighton.loc" && return 1 - nb-ips | grep -qFm1 "$ip" || cmd="ssh $host '$cmd'" + nb-ips | grep -qFm1 "$ip" || cmd="ssh -o BatchMode=yes $host '$cmd'" #export -f mac-xmessage [ "$USER" != "nico" ] && cmd="su - nico -c \"$cmd\"" eval "$cmd"