myconfig

my config files
git clone https://a3nm.net/git/myconfig/
Log | Files | Refs | README

tmux (1801B)


      1 # $Id: screen-keys.conf,v 1.7 2010-07-31 11:39:13 nicm Exp $
      2 #
      3 # By Nicholas Marriott. Public domain.
      4 #
      5 # This configuration file binds many of the common GNU screen key bindings to
      6 # appropriate tmux key bindings. Note that for some key bindings there is no
      7 # tmux analogue and also that this set omits binding some commands available in
      8 # tmux but not in screen.
      9 #
     10 # Note this is only a selection of key bindings and they are in addition to the
     11 # normal tmux key bindings. This is intended as an example not as to be used
     12 # as-is.
     13 
     14 # Set the prefix to ^A.
     15 unbind C-b
     16 set -g prefix ^A
     17 bind a send-prefix
     18 
     19 # Bind appropriate commands similar to screen.
     20 # lockscreen ^X x 
     21 unbind ^X
     22 bind ^X lock-server
     23 unbind x
     24 bind x lock-server
     25 
     26 # screen ^C c 
     27 unbind ^C
     28 bind ^C new-window
     29 unbind c
     30 bind c new-window
     31 
     32 # detach ^D d
     33 unbind ^D
     34 bind ^D detach
     35 
     36 # displays * 
     37 unbind *
     38 bind * list-clients
     39 
     40 # next ^@ ^N sp n 
     41 unbind ^@
     42 bind ^@ next-window
     43 unbind ^N
     44 bind ^N next-window
     45 unbind " "
     46 bind " " next-window
     47 unbind n
     48 bind n next-window
     49 
     50 # title A
     51 unbind A
     52 bind A command-prompt "rename-window %%"
     53 
     54 # other ^A
     55 unbind ^A
     56 bind ^A last-window
     57 
     58 # prev ^H ^P p ^? 
     59 unbind ^H
     60 bind ^H previous-window
     61 unbind ^P
     62 bind ^P previous-window
     63 unbind p
     64 bind p previous-window
     65 unbind BSpace
     66 bind BSpace previous-window
     67 
     68 # windows ^W w 
     69 unbind ^W
     70 bind ^W list-windows
     71 unbind w
     72 bind w list-windows
     73 
     74 # quit \ 
     75 unbind \
     76 bind \ confirm-before "kill-server"
     77 
     78 # kill K k 
     79 unbind K
     80 bind K confirm-before "kill-window"
     81 unbind k
     82 bind k confirm-before "kill-window"
     83 
     84 # redisplay ^L l 
     85 unbind ^L
     86 bind ^L refresh-client
     87 unbind l
     88 bind l refresh-client
     89 
     90 # split -v |
     91 unbind |
     92 bind | split-window
     93 
     94 # :kB: focus up
     95 unbind Tab
     96 bind Tab select-pane -t:.+
     97 unbind BTab
     98 bind BTab select-pane -t:.-
     99 
    100 # " windowlist -b
    101 unbind '"'
    102 bind '"' choose-window