2021-03-31 09:14:51 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-03-31 10:47:59 +00:00
|
|
|
#
|
|
|
|
# Open a new tmux session named after the current directory with a basic
|
|
|
|
# development/editing environment.
|
2021-03-31 09:14:51 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
cwd=$(pwd)
|
|
|
|
sessionname=$(basename $cwd)
|
|
|
|
tmux new -d -s $sessionname
|
|
|
|
tmux rename-window -t $sessionname:1 cli
|
|
|
|
tmux new-window -t $sessionname -n vim vim
|
|
|
|
tmux select-window -t $sessionname:1
|
|
|
|
tmux attach -t $sessionname
|