dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit 95c72b27d19968bdc76a17a7c59be0747d5a076f
parent 13d48afab2ff320ceb6d6da80e7c88cd0fd41779
Author: Dionysis Grigoropoulos <info@erethon.com>
Date:   Sun,  9 Nov 2014 03:27:01 +0200

ssh-multi: Add support for passing args to ssh

Diffstat:
bin/ssh-multi | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/ssh-multi b/bin/ssh-multi @@ -1,7 +1,10 @@ -HOSTS=$(cat $1) +if [ $# -gt 0 ]; then + HOSTS=$(cat $1) +fi +# Use $2 to pass arguments to SSH, e.g., "-o StrictHostKeyChecking=no" for host in $HOSTS; do - tmux split-window -h "ssh -l root $host" + tmux split-window -h "ssh -l root $2 $host" tmux select-layout tiled > /dev/null done