On Wed, May 18, 2011 at 12:06:28PM -0700, Micah Cowan wrote:
> (05/18/2011 11:18 AM), Robin Lee Powell wrote:
> > Huh.  My tmux.conf doesn't seem to actually *work*; I have to
> > manually do a ":set-window-option alternate-screen" when I
> > launch tmux for it to actually be set correctly.  That's a bit
> > odd, isn't it?  So in the tmux case there's a step for that,
> > before running script.
> 
> Make sure to add the explicit "off" at the end, if you didn't.

Doing that set it to off.

> If your .tmux.conf is not even being read, then that's usually a
> sign that your tmux server was already running (.tmux.conf is only
> read at server startup, not at the start of every new session) -
> so if there's still a (detached?) session running, you need to
> make sure tmux is dead. killall tmux is one way to ensure that.

Oh.  I'm sorry, but I'm really not prepared to completely stop tmux
on that box; all my work is under there.  Here's my tmux.conf, then;
if it's really important that I try this with an empty one, let me
know and I'll set up a different machine.  It's a copy of a "make it
act like screen" example I found, with minor mods.

# Set the prefix to ^T.
unbind C-b
set -g prefix ^T
bind t send-prefix

# various buffer join options
unbind j
bind j paste-buffer -s ' '
unbind J
bind J paste-buffer -s ''

# Windows > 9

# basic settings
set-window-option -g mode-keys vi # vi key
set-option -g status-keys vi
set-window-option -g utf8 on # utf8 support
#set-window-option -g mode-mouse off # disable mouse

# 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
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 " "
bind " " next-window
unbind n
bind n next-window

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

# other ^T
unbind ^T
bind ^T 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

# 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-window"

# 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


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to