dotfiles

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

commit 0199d5f70059fdf1d260255a56336c20729cffd6
parent 62c8c0108d891cea96669991c740f2cdda260f96
Author: Dionysis Grigoropoulos <info@erethon.com>
Date:   Fri,  7 Nov 2014 13:12:45 +0200

bin: Create ~/bin to store quick and dirty scripts

This commit:
* Adds ~/bin to PATH
* Creates ~/bin/ssh-multi

Diffstat:
.bashrc | 1+
bin/ssh-multi | 9+++++++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -122,4 +122,5 @@ PATH=$PATH:/sbin/ PATH=$PATH:/usr/sbin/ PATH=$PATH:/usr/bin/ PATH=$PATH:/usr/local/sbin/ +PATH=$PATH:~/bin/ export PATH diff --git a/bin/ssh-multi b/bin/ssh-multi @@ -0,0 +1,9 @@ +HOSTS=$(cat $1) + +for host in $HOSTS; do + tmux split-window -h "ssh -l root $host" + tmux select-layout tiled > /dev/null +done + +tmux set-window-option synchronize-panes on > /dev/null +tmux kill-pane -t 1