start new:
tmux
start new with session name:
tmux new -s myname
After finding a lot of other posts on the topic that didn't work out for me this one did the trick so I'm reposting for my own sense of self preservation.
Copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.
sudo cp \
/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist \
| #!/bin/sh | |
| # | |
| # Setup a work space called `work` with two windows | |
| # first window has 3 panes. | |
| # The first pane set at 65%, split horizontally, set to api root and running vim | |
| # pane 2 is split at 25% and running redis-server | |
| # pane 3 is set to api root and bash prompt. | |
| # note: `api` aliased to `cd ~/path/to/work` | |
| # | |
| session="work" |
| #!/bin/bash | |
| DEV_PATH="~/dev/myapp" | |
| SESSION="myapp" | |
| tmux -2 new-session -d -s $SESSION | |
| # First window (backend dev) | |
| tmux rename-window "Backend" | |
| tmux send-keys "cd $DEV_PATH; vim" C-m | |
| # Frontend window for vim |
| #!/bin/bash | |
| tmux has-session -t dev | |
| if [ $? != 0 ] | |
| then | |
| tmux new-session -s dev -n "TEST" -d | |
| tmux split-window -h -t dev:0 | |
| tmux split-window -v -t dev:0.1 | |
| tmux send-keys -t dev:0.0 'cd ~/foo/bar' C-m | |
| tmux send-keys -t dev:0.1 'autossh -M 0 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" test@test -t "cd ~/bar;bash"' C-m |
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.
| font = "Bmono 12" | |
| geometry = "0x0-62-62" | |
| separator_height = 2 | |
| padding = 2 | |
| horizontal_padding = 2 | |
| frame_width = 2 | |
| markup = full | |
| format = "<b>%s</b>\n%b" | |
| icon_path = "" |