Created
April 11, 2012 18:14
-
-
Save rattlion/2361080 to your computer and use it in GitHub Desktop.
tmux conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TMUX PASTE WRAPPER | |
set -g default-command "/opt/local/bin/reattach-to-user-namespace -l zsh" | |
# TERM SETTINGS | |
set -g default-terminal "screen-256color" | |
set -g status-utf8 on | |
# Reload key | |
bind r source-file ~/.tmux.conf | |
# set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# THEME | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left-length 30 | |
set -g status-right-length 60 | |
set -g status-left ' #[default]' | |
set -g status-right '#[fg=colour198]%H:%M#[default]' | |
setw -g window-status-format '#[fg=colour235]#I #[fg=white]#W#[default] ' | |
#FIXME: I want to be able to use: ⮁ | |
setw -g window-status-current-format '#[bg=white,fg=black]⮀ #W #[bg=black,fg=white]⮀' | |
# Set pane divider | |
set -g pane-border-bg black | |
set -g pane-border-fg black | |
set -g pane-active-border-bg black | |
set -g pane-active-border-fg black | |
######################### SCREEN BINDINGS ###################### | |
# $Id: screen-keys.conf,v 1.7 2010/07/31 11:39:13 nicm Exp $ | |
# | |
# By Nicholas Marriott. Public domain. | |
# | |
# This configuration file binds many of the common GNU screen key bindings to | |
# appropriate tmux key bindings. Note that for some key bindings there is no | |
# tmux analogue and also that this set omits binding some commands available in | |
# tmux but not in screen. | |
# | |
# Note this is only a selection of key bindings and they are in addition to the | |
# normal tmux key bindings. This is intended as an example not as to be used | |
# as-is. | |
# Set the prefix to ^A. | |
unbind C-b | |
set -g prefix ^A | |
bind a 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 | |
bind c new-window | |
# detach ^D d | |
unbind ^D | |
bind ^D detach | |
# displays * | |
unbind * | |
bind * list-clients | |
set -g display-panes-time 4000 | |
# next ^@ ^N sp n | |
unbind ^@ | |
bind ^@ next-window | |
unbind ^N | |
bind ^N next-window | |
unbind " " | |
bind " " next-window | |
unbind n | |
bind n next-window | |
# other ^A | |
unbind ^A | |
bind ^A last-window | |
# prev ^H ^P p ^? | |
unbind ^H | |
bind ^H previous-window | |
unbind ^P | |
bind ^P previous-window | |
unbind p | |
bind p previous-window | |
unbind BSpace | |
bind BSpace previous-window | |
# quit \ | |
unbind Q | |
bind Q confirm-before "kill-server" | |
# kill K k | |
unbind K | |
bind K confirm-before "kill-window" | |
unbind k | |
bind k confirm-before "kill-pane" | |
# redisplay ^L l | |
unbind ^L | |
bind ^L refresh-client | |
unbind l | |
bind l refresh-client | |
# split -v | | |
unbind | | |
bind | split-window | |
# :kB: focus up | |
unbind Tab | |
bind Tab select-pane -t:.+ | |
unbind BTab | |
bind BTab select-pane -t:.- | |
# " windowlist -b | |
unbind '"' | |
bind '"' choose-window | |
# easy split | |
unbind '%' | |
bind '%' split-window -h -l 70 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment