Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
added tmux scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ Asghar committed Oct 3, 2013
1 parent 0ffe4db commit 794be04
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tmux_setups/coding
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions tmux_setups/development
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions tmux_setups/servers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

tmux new-session -s servers -d "ssh <some server>"
tmux split-window -v "ssh <some server>"
tmux attach -t servers
7 changes: 7 additions & 0 deletions tmux_setups/writing
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 794be04

Please sign in to comment.