-
-
Save kgrvamsi/cdf14c38939ed998b0ed to your computer and use it in GitHub Desktop.
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
# $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 C-t | |
bind C-t 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 | |
unbind c | |
bind c new-window | |
# detach ^D d | |
unbind ^D | |
bind ^D detach | |
# displays * | |
unbind * | |
bind * list-clients | |
# next ^@ ^N sp n | |
unbind ^@ | |
bind ^@ next-window | |
unbind ^N | |
bind ^N next-window | |
unbind n | |
bind n next-window | |
# title A | |
unbind A | |
bind A command-prompt "rename-window %%" | |
# other ^A | |
unbind ^A | |
# bind ^t last-window | |
bind ^t last-pane | |
# 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 | |
# windows ^W w | |
unbind ^W | |
bind ^W list-windows | |
unbind w | |
bind w list-windows | |
# quit \ | |
unbind '\' | |
bind '\' 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 | |
## status bar | |
set -g status-interval 10 | |
set -g status-bg colour8 | |
# set -g status-fg colour152 | |
set -g status-fg colour16 | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg colour8 | |
## border | |
set -g pane-active-border-fg white | |
# set -g pane-active-border-bg yellow | |
## Emacs | |
set-option -g default-terminal xterm-256color | |
## UTF8 | |
setw -g utf8 on | |
set -g status-utf8 on | |
## Reload configuration | |
# C-t C-r でリロード | |
bind C-r source-file ~/.tmux.conf | |
# Windowモードでは vi 風 | |
# set-window-option -g mode-keys vi | |
set-window-option -g mode-keys emacs | |
# next-layout | |
unbind " " | |
bind " " next-layout | |
# C-t C-o で事故るので... | |
unbind ^O | |
# マウス | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
# canything連携 | |
bind-key b split-window 'tmux lsw | canything | cut -d":" -f 1 | xargs tmux select-window -t' | |
# etc | |
bind-key w command-prompt "split-window -p 65 'exec man %%'" | |
bind-key S command-prompt "new-window -n %1 'ssh %1'" | |
set-option -g default-command "reattach-to-user-namespace -l $SHELL" | |
bind-key -t emacs-copy M-w copy-pipe "reattach-to-user-namespace pbcopy" #tmux 1.8 conf gramma |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment