23 lines
670 B
Bash
Executable File
23 lines
670 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
shopt -s globstar nullglob
|
|
|
|
# Fix function keys, Home and End at least.
|
|
declare -x TERM=rxvt-unicode-256color
|
|
|
|
if ! tmux has-session -t tm1
|
|
then
|
|
# About mutt: the weird bash incantation is the only way I found
|
|
# to combine both of: starts with tty flow-control disabled; can
|
|
# quit mutt and get a shell.
|
|
tmux new-session -d -s tm1 -n "mutt" "bash -i -c 'mutt -y; bash -i'"
|
|
tmux set-option set-titles on
|
|
tmux new-window -e "TMP=$HOME/.slrn" -n "slrn" "bash -i -c 'slrn; bash -i'"
|
|
tmux new-window -n "bash" "bash -i"
|
|
tmux select-window -t "mutt"
|
|
fi
|
|
exec tmux attach-session -t tm1
|