14 lines
355 B
Bash
Executable File
14 lines
355 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Open a new tmux session named after the current directory with a basic
|
|
# development/editing environment.
|
|
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
|