dotfiles

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

commit f70535022d92f603fdefe0ae99d2d6522ba668e0
parent 45dddd5f3df34727df6fc3ed3663bd0b904c2009
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 17 Dec 2018 09:51:47 +0100

Add tmux-mutt script

Diffstat:
Alinks/bin/tmux-mutt.sh | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/links/bin/tmux-mutt.sh b/links/bin/tmux-mutt.sh @@ -0,0 +1,18 @@ +##!/bin/bash +SESSION=mail +echo "starting $SESSION tmux session" + +if ! tmux has-session -t "$SESSION" +then + + # Create new session, name it, name the window, detach + tmux new-session -s "$SESSION" -d + + tmux send-keys -t "$SESSION" "echo $PWD" C-m + tmux send-keys -t "$SESSION" "mutt" C-m + + #tmux select-layout tiled + tmux select-pane -t "$SESSION":1.1 + +fi +tmux attach -t "$SESSION"