Add tmux start script
This commit is contained in:
parent
aff1537f14
commit
2cda86ea37
1 changed files with 22 additions and 0 deletions
22
tmux/SojournerTmux
Executable file
22
tmux/SojournerTmux
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
######
|
||||||
|
# Sojourner: My Default Session
|
||||||
|
# Triple-pane Window
|
||||||
|
# Pane 1: Vim, primarily for Vimwiki Usage
|
||||||
|
# Pane 2: Large console
|
||||||
|
# Pane 3: Small console
|
||||||
|
###
|
||||||
|
|
||||||
|
tmux has-session -t Sojourner &>/dev/null
|
||||||
|
|
||||||
|
if [ $? != 0 ]
|
||||||
|
then
|
||||||
|
tmux new-session -s Sojourner -d
|
||||||
|
tmux send-keys -t Sojourner 'vim' C-m
|
||||||
|
tmux split-window -t Sojourner -h
|
||||||
|
tmux split-window -t Sojourner:1.2 -v -p 30
|
||||||
|
tmux select-pane -t Sojourner:1.1
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmux attach -t Sojourner
|
Loading…
Reference in a new issue