]> Sergey Matveev's repositories - mmc.git/blob - cmd/newwin
Alert when server failed
[mmc.git] / cmd / newwin
1 #!/bin/sh -e
2
3 cmd="$(dirname "$(realpath -- "$0")")"
4 what="$1"
5 [ -n "$what" ] || what="`find . -type d | fzf`"
6 name="${what##*/}"
7 tmux list-windows -F "#{window_name}" | grep -q "$name" && exit || :
8 tmux new-window -n "$name" $cmd/rd/colourized $what
9 tmux split-window -t "$name" -l 5 $cmd/wr $what