From 794be04e9af4438b75b281deafe57a6175c3668a Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Wed, 2 Oct 2013 19:35:38 -0500 Subject: [PATCH] added tmux scripts --- tmux_setups/coding | 7 +++++++ tmux_setups/development | 15 +++++++++++++++ tmux_setups/servers.sh | 5 +++++ tmux_setups/writing | 7 +++++++ 4 files changed, 34 insertions(+) create mode 100755 tmux_setups/coding create mode 100755 tmux_setups/development create mode 100755 tmux_setups/servers.sh create mode 100755 tmux_setups/writing diff --git a/tmux_setups/coding b/tmux_setups/coding new file mode 100755 index 0000000..2fac6b8 --- /dev/null +++ b/tmux_setups/coding @@ -0,0 +1,7 @@ +#!/bin/bash +tmux new-session -s coding -n main -d +tmux send-keys -t coding 'cd ~/scripts/' C-m +tmux send-keys -t coding 'vim' C-m +tmux split-window -v -p 10 -t coding +tmux send-keys -t coding:1.2 'cd ~/scripts' C-m +tmux attach -t coding diff --git a/tmux_setups/development b/tmux_setups/development new file mode 100755 index 0000000..f5ff491 --- /dev/null +++ b/tmux_setups/development @@ -0,0 +1,15 @@ +#!/bin/bash +tmux has-session -t development +if [ $? != 0 ] + then + tmux new-session -s development -n editor -d + tmux send-keys -t development 'cd ~/repo' C-m + tmux send-keys -t development 'vim' C-m + tmux split-window -v -t development + tmux split-window -v -p 10 -t development + tmux select-layout -t development main-horizontal + + tmux new-window -n console -t development + tmux send-keys -t development:2 'cd ~/repo' C-m + fi +tmux attach -t development diff --git a/tmux_setups/servers.sh b/tmux_setups/servers.sh new file mode 100755 index 0000000..736cc93 --- /dev/null +++ b/tmux_setups/servers.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +tmux new-session -s servers -d "ssh " +tmux split-window -v "ssh " +tmux attach -t servers diff --git a/tmux_setups/writing b/tmux_setups/writing new file mode 100755 index 0000000..0a0e20d --- /dev/null +++ b/tmux_setups/writing @@ -0,0 +1,7 @@ +#!/bin/bash +tmux new-session -s writing -n main -d +tmux send-keys -t writing 'cd ~/repo/jjasghar.github.io/source/_posts' C-m +tmux send-keys -t writing 'vim' C-m +tmux split-window -v -p 10 -t writing +tmux send-keys -t writing:1.2 'cd ~/repo/jjasghar.github.io/' C-m +tmux attach -t writing