dotfiles

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

tmux-newsboat.sh (337B)


      1 #!/bin/bash
      2 SESSION=rss
      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" "cd ~/tmp && newsboat; exit" C-m
     11     tmux select-pane -t "$SESSION":1.1
     12 
     13 fi
     14 tmux attach -t "$SESSION"