Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
tmux conf: (k)ill window; (K)ill server; also some propogation throug…
Browse files Browse the repository at this point in the history
…h my dot forests.
  • Loading branch information
jzacsh committed Jan 19, 2013
1 parent 809134d commit fd88c7b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
22 changes: 10 additions & 12 deletions .host/src/distro.ubuntu/.tmux.conf
Expand Up @@ -38,7 +38,7 @@ unbind C-b
set -g prefix ^A
bind a send-prefix

# screen ^C c
# screen ^C c
unbind ^C
bind ^C new-window
bind c
Expand All @@ -48,11 +48,11 @@ bind c new-window
unbind ^D
bind ^D detach

# displays *
# displays *
unbind *
bind * list-clients

# next ^@ ^N sp n
# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
Expand All @@ -70,7 +70,7 @@ bind A command-prompt "rename %%"
unbind ^A
bind ^A last-window

# prev ^H ^P p ^?
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
Expand All @@ -80,23 +80,21 @@ bind p previous-window
unbind BSpace
bind BSpace previous-window

# windows ^W w
# 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
# quit K
unbind K
bind K confirm-before "kill-window"
bind K confirm-before "kill-server"

# kill k
unbind k
bind k confirm-before "kill-window"

# redisplay ^L l
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
Expand Down
32 changes: 13 additions & 19 deletions .tmux.conf
@@ -1,5 +1,8 @@
### Unbind existing tmux key bindings (except 0-9).

# do not need a login shell
set-option -g default-command bash

set-option -g default-terminal screen-256color
set -g visual-activity off

Expand Down Expand Up @@ -34,14 +37,7 @@ 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
# screen ^C c
unbind ^C
bind ^C new-window
bind c
Expand All @@ -51,11 +47,11 @@ bind c new-window
unbind ^D
bind ^D detach

# displays *
# displays *
unbind *
bind * list-clients

# next ^@ ^N sp n
# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
Expand All @@ -73,7 +69,7 @@ bind A command-prompt "rename %%"
unbind ^A
bind ^A last-window

# prev ^H ^P p ^?
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
Expand All @@ -83,23 +79,21 @@ bind p previous-window
unbind BSpace
bind BSpace previous-window

# windows ^W w
# 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
# quit K
unbind K
bind K confirm-before "kill-window"
bind K confirm-before "kill-server"

# kill k
unbind k
bind k confirm-before "kill-window"

# redisplay ^L l
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
Expand Down

0 comments on commit fd88c7b

Please sign in to comment.