Skip to content

Commit

Permalink
cleaned up unused stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukkee committed Aug 13, 2011
1 parent 02b31ec commit 2fea49a
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 246 deletions.
30 changes: 15 additions & 15 deletions tmux.conf
@@ -1,27 +1,27 @@
# Change prefix to C-f
# change prefix to C-f
set-option -g prefix C-f
unbind-key C-b
bind-key f send-prefix
bind-key C-w send-prefix

# Use pbcopy/pbpaste
# use pbcopy/pbpaste
set-option -g default-command "/usr/local/bin/reattach-to-user-namespace -l /opt/local/bin/zsh"

# Use mouse
# use mouse
set-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'

# Options
# options
set-option -g default-terminal screen-256color
set-option -g display-time 2000
set-option -g history-limit 10000
set-option -g pane-active-border-bg colour240
set-option -g status-utf8 on
set-option -g visual-activity on

# Window options
# window options
set-window-option -g alternate-screen on
set-window-option -g mode-keys vi
set-window-option -g main-pane-height 35
Expand All @@ -30,7 +30,7 @@ set-window-option -g monitor-activity on
set-window-option -g utf8 on
set-window-option -g automatic-rename off

# Status
# status
set-option -g status-interval 1
set-option -g status-left-length 20
set-option -g status-left ''
Expand All @@ -41,7 +41,7 @@ set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg blue
set-window-option -g window-status-current-attr bold

# Keybinds
# keybinds
bind-key K confirm-before kill-window
bind-key X confirm-before kill-pane
bind-key \ confirm-before kill-session
Expand All @@ -59,14 +59,14 @@ bind-key v split-window -h
bind-key B break-pane
bind-key O join-pane -t:-.bottom-right

bind-key j select-pane -D \; run-shell 'ruby ~/.tmux/vim_helper.rb'
bind-key C-j select-pane -D \; run-shell 'ruby ~/.tmux/vim_helper.rb'
bind-key k select-pane -U \; run-shell 'ruby ~/.tmux/vim_helper.rb'
bind-key C-k select-pane -U \; run-shell 'ruby ~/.tmux/vim_helper.rb'
bind-key h select-pane -L \; run-shell 'ruby ~/.tmux/vim_helper.rb'
bind-key C-h select-pane -L \; run-shell 'ruby ~/.tmux/vim_helper.rb'
bind-key l select-pane -R \; run-shell 'ruby ~/.tmux/vim_helper.rb'
bind-key C-l select-pane -R \; run-shell 'ruby ~/.tmux/vim_helper.rb'
# bind-key j select-pane -D \; run-shell 'ruby ~/.tmux/vim_helper.rb'
# bind-key C-j select-pane -D \; run-shell 'ruby ~/.tmux/vim_helper.rb'
# bind-key k select-pane -U \; run-shell 'ruby ~/.tmux/vim_helper.rb'
# bind-key C-k select-pane -U \; run-shell 'ruby ~/.tmux/vim_helper.rb'
# bind-key h select-pane -L \; run-shell 'ruby ~/.tmux/vim_helper.rb'
# bind-key C-h select-pane -L \; run-shell 'ruby ~/.tmux/vim_helper.rb'
# bind-key l select-pane -R \; run-shell 'ruby ~/.tmux/vim_helper.rb'
# bind-key C-l select-pane -R \; run-shell 'ruby ~/.tmux/vim_helper.rb'

bind-key K swap-pane -U
bind-key J swap-pane -D
Expand Down
2 changes: 1 addition & 1 deletion tmux/vim_helper.rb
Expand Up @@ -2,7 +2,7 @@

current = `tmux display-message -p "#I:#P"`

open(ENV['HOME'] + "/vim_pane_save").each do |i|
open(ENV['HOME'] + "/.vim_pane_save").each do |i|
if i == current
`tmux set-option -g prefix C-f`
end
Expand Down

0 comments on commit 2fea49a

Please sign in to comment.