start adding single argument to bunkdeck
This commit is contained in:
parent
e1b7d87b1b
commit
4b84f46a83
1 changed files with 36 additions and 14 deletions
24
bunkdeck
24
bunkdeck
|
@ -1,5 +1,26 @@
|
||||||
#!/bin/bash
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
|
||||||
|
kill)
|
||||||
|
# kill
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
# restart
|
||||||
|
;;
|
||||||
|
|
||||||
|
"")
|
||||||
|
newDeck
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
# error
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
function newDeck {
|
||||||
set +e
|
set +e
|
||||||
sessions=$(tmux list-sessions)
|
sessions=$(tmux list-sessions)
|
||||||
set -e
|
set -e
|
||||||
|
@ -15,3 +36,4 @@ tmux split-window -t bunkdeck:0.0 -v -p 10
|
||||||
tmux send-keys -t bunkdeck:0.1 'proclaim' C-m
|
tmux send-keys -t bunkdeck:0.1 'proclaim' C-m
|
||||||
tmux send-keys -t bunkdeck:0.2 'cowsay "press [CTRL+b then o] to cycle through panes"' C-m
|
tmux send-keys -t bunkdeck:0.2 'cowsay "press [CTRL+b then o] to cycle through panes"' C-m
|
||||||
tmux attach -t bunkdeck:0.2
|
tmux attach -t bunkdeck:0.2
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue