dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | Submodules | README | LICENSE

tmux-mutt.sh (322B)


      1 #!/bin/bash
      2 SESSION=mail
      3 echo "starting $SESSION tmux session"
      4 
      5 if ! tmux has-session -t "$SESSION"
      6 then
      7 
      8     # Create new session, name it, name the window, detach
      9     tmux new-session -s "$SESSION" -d
     10     tmux send-keys -t "$SESSION" "mutt; exit" C-m
     11     tmux select-pane -t "$SESSION":1.1
     12 
     13 fi
     14 tmux attach -t "$SESSION"