From 45e50fb7440215b98b340dcf78db09cfe7432fb4 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 27 Aug 2014 20:19:06 +0200 Subject: [PATCH] Added keybind for opening nano + git --- tmux.conf | 1 + tmux/git | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tmux/git diff --git a/tmux.conf b/tmux.conf index db2fb3d..7ac5f60 100644 --- a/tmux.conf +++ b/tmux.conf @@ -16,6 +16,7 @@ set -g visual-activity on #load tmux setup bind D source-file ~/.dotfiles/tmux/dev +bind G source-file ~/.dotfiles/tmux/git #setup kill comnmand bind k confirm kill-window diff --git a/tmux/git b/tmux/git new file mode 100644 index 0000000..9e7003c --- /dev/null +++ b/tmux/git @@ -0,0 +1,11 @@ +select-pane -t 0 +split-window -h -p 21 -c "$pane_current_patch" +select-pane -t 0 + +send-keys -t 0 'nano -F' C-m + +send-keys -t 1 'tmux rename-window "Dev: $(basename)"' C-m +send-keys -t 1 'clear' C-m +send-keys -t 1 'git status' C-m + +