Skip to content

Commit

Permalink
make tmux.conf thinner
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuken committed Jul 7, 2016
1 parent ade0bcf commit bca5880
Showing 1 changed file with 0 additions and 79 deletions.
79 changes: 0 additions & 79 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ set-option -g default-terminal "screen-256color"
set -g status-bg black
set -g status-fg white
set -g status-attr dim
# 左部:whoami@hostname
set -g status-left '#[fg=blue,bold][#20(whoami) No.#I-#P]#[default]'
set -g status-left-length 20
# 右部:[2011/03/06(Sun)20:21]
# set -g status-right '#[fg=blue,bold][%Y/%m/%d(%a)%H:%M]#[default]'

# ステータスライン - Right
set -g status-right '< #[fg=blue]up #(pc-running-time)#[default] < #[fg=magenta](#(loadaverage)) Mem #(used-mem)%%#[default] < #[fg=red,bold]%y/%m/%d(%a)%H:%M:%S#[default] '
# Rightの表示領域最大長
set -g status-right-length 120
set -g message-attr bold
set -g message-fg white
Expand All @@ -37,31 +28,15 @@ set-window-option -g window-status-current-bg blue
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-attr bold

# Set the prefix to ^Z.
unbind C-b
set -g prefix ^Z
bind z send-prefix

# Bind appropriate commands similar to screen.
# lockscreen ^X x
# unbind ^X
# bind ^X lock-server
# unbind x
# bind x lock-server

# screen ^C c
unbind ^C
bind ^C new-window -n zsh
bind c new-window -n zsh

# detach ^D d
unbind ^D
bind ^D detach

# displays *
unbind *
bind * list-clients

# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
Expand All @@ -72,16 +47,6 @@ bind " " next-window
unbind n
bind n next-window

# title A
unbind A
bind A command-prompt "rename-window %%"

# copy-mode ^[
# unbind ^"["
# bind -r ^"[" copy-mode
# unbind ^]
# bind -r ^] paste-buffer

# http://robots.thoughtbot.com/tmux-copy-paste-on-os-x-a-better-future
# Use vim keybindings in copy mode
setw -g mode-keys vi
Expand All @@ -94,20 +59,6 @@ bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"

# other ^A
unbind ^A
bind ^A last-window

# prev ^H ^P p ^?
unbind BSpace
bind BSpace previous-window

# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows

# quit \
unbind \
bind \ confirm-before "kill-server"
Expand All @@ -118,12 +69,6 @@ bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"

# redisplay ^R r
unbind ^R
bind ^R refresh-client
# unbind r
# bind r refresh-client

# split -v |
unbind |
bind | split-window
Expand All @@ -138,33 +83,9 @@ bind -r C-j resize-pane -D 5
bind -r C-k resize-pane -U 5
bind -r C-l resize-pane -R 5

# :kB: focus up
# unbind Tab
# bind Tab select-pane -t :.-
# unbind BTab
# bind BTab select-pane -t :.+
# unbind ^H
# bind ^H select-pane -t :.-
# unbind h
# bind ^h select-pane -t :.-
# unbind ^L
# bind ^L select-pane -t :.+
# unbind l
# bind l select-pane -t :.+

# " windowlist -b
unbind '"'
bind '"' choose-window

# Enable mouse support(works in iTerm)
# set-window-option -g mode-mouse on
# set-option -g mouse-select-pane on
# set-option -g mouse-resize-pane on
# set-option -g mouse-select-window on

# zshでpbcopy
set-option -g default-command "reattach-to-user-namespace -l zsh"

# reload
unbind r
bind r source-file ~/.tmux.conf \; display-message "Reload Config!"

0 comments on commit bca5880

Please sign in to comment.