How to switch window without loading the shell init?

2015-05-06 Thread Kaushal
Hi, I use the tmux split-window function only temporarily at times to do some quick selections from a list using percol. Examples: # switch to another session by name bind S split-window tmux ls | percol --initial-index `tmux ls | awk '/attached.$/ {print NR-1}'` | cut -d':' -f 1 | xargs tmux

tmux 2.0 released

2015-05-06 Thread Thomas Adam
Hi all, I'm pleased to announce the release of tmux 2.0. Please take a look here: https://sourceforge.net/projects/tmux/files/tmux/tmux-2.0/ for the release tarball and changes introduced in to 2.0. Please let any packagers know of this release. Any questions, do please ask. On behalf of

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Thomas Adam
On 6 May 2015 at 22:42, Nicholas Marriott nicholas.marri...@gmail.com wrote: Hmm weird. There is nothing in the nsterm terminfo to make tmux think that M-b is actually M-Left. Please run TERM=nsterm tmux -Ltest -f/dev/null new then press Option+Left That should be: TERM=nsterm tmux

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Nicholas Marriott
Yes of course, sorry. On Wed, May 06, 2015 at 11:31:51PM +0100, Thomas Adam wrote: On 6 May 2015 at 22:42, Nicholas Marriott nicholas.marri...@gmail.com wrote: Hmm weird. There is nothing in the nsterm terminfo to make tmux think that M-b is actually M-Left. Please run TERM=nsterm

How to access session environment variable from running window

2015-05-06 Thread Enrico Ghirardi
Hi, is there a way to access session environment variables from an already running window? In my example I: 1- create a session then detach from it 2- start a new shell set an environment variable (the variable is included in the update-environment string) 3- attach to old session from this

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Leonardo Brondani Schenkel
On 06 May 2015, at 17:21, Nicholas Marriott nicholas.marri...@gmail.com wrote: What does the terminal actually send outside tmux for Option+Left? ^[b. It's an explicit binding that comes pre-configured by default in Terminal.app (but can be changed). It does not change if the terminal is in

Re: freebsd install from git source

2015-05-06 Thread Nicholas Marriott
Do you have libtool installed? If so then your autoconf is probably either too old or too new. Original message From: jungle Boogie jungleboog...@gmail.com Date:06/05/2015 21:04 (GMT+00:00) To: tmux-users tmux-users@lists.sourceforge.net Subject: freebsd install from git

freebsd install from git source

2015-05-06 Thread jungle Boogie
Hello All, I grabbed tmux git repo, cd to its dir, sh autogen.sh and now error: % sh autogen.sh configure.ac:19: installing 'etc/compile' configure.ac:11: installing 'etc/config.guess' configure.ac:11: installing 'etc/config.sub' configure.ac:9: installing 'etc/install-sh' configure.ac:9:

Re: freebsd install from git source

2015-05-06 Thread jungle Boogie
On 6 May 2015 at 14:11, J Raynor jxray...@gmail.com wrote: I think I've seen the error with AC_SEARCH_LIBS and m4_pattern_allow before. Try installing pkgconf if you don't already have it installed, and then rerun autogen.sh. Good job and thanks for the help! % tmux -V tmux 2.0 I recommend

Re: How to access session environment variable from running window

2015-05-06 Thread Nicholas Marriott
tmux can't affect variables in panes that already contain a running process. The only way is to set them yourself (perhaps by getting the values from tmux getenv). Original message From: Enrico Ghirardi d...@choco.me Date:06/05/2015 16:31 (GMT+00:00) To: tmux-users

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Leonardo Brondani Schenkel
On 06/05/2015 20:49, Nicholas Marriott wrote: Are you sure it is \[b not \[[b? Positive. Just double checked via cat: ^[b. In Terminal.app preferences it's shown as \033b. Original message From: Leonardo Brondani Schenkel Date:06/05/2015 16:50 (GMT+00:00) To: Nicholas

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Nicholas Marriott
Are you sure it is \[b not \[[b? Original message From: Leonardo Brondani Schenkel leona...@schenkel.net Date:06/05/2015 16:50 (GMT+00:00) To: Nicholas Marriott nicholas.marri...@gmail.com Cc: tmux-users@lists.sourceforge.net Subject: Re: Q: tmux sending different key

display-panes missing pane size when status-position == top

2015-05-06 Thread John O'Meara
I noticed today that when status-position is set to top and the display-panes command is run, panes which touch the top don't have the size info displayed in the corner, and other panes get their size info embedded in their upper border (actually, I think the size is printed, just on the status

change pane problem

2015-05-06 Thread Cody Chan
Hi, all tmux users, I have a problem, when I'm using prefix+M-left/right/down/up to change pane, if I keep hitting left/right/down/up without the prefix after one combination of prefix and the M-arrow, the focus will keep changing between panes, but what I want is, if you want to change pane, you

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Nicholas Marriott
Hi What does the terminal actually send outside tmux for Option+Left? You should be able to see by running cat and then pressing the keys. On Wed, May 06, 2015 at 04:59:12PM +0200, Leonardo Brondani Schenkel wrote: Hello, I'm using tmux 1.9a in Terminal.app 343.7 (OS X 10.10). I noticed

Re: How to switch window without loading the shell init?

2015-05-06 Thread Nicholas Marriott
Change your default-shell to /bin/sh so that new windows started with a command will get /bin/sh and set default-command to tcsh so you get tcsh? On Wed, May 06, 2015 at 03:11:43PM +, Kaushal wrote: Thanks for the quick replies. But unfortunately, I have to use the tcsh shell and I

Re: How to switch window without loading the shell init?

2015-05-06 Thread Kaushal
That worked wonders! Thanks. It happens that the existing commands I have like bind S split-window tmux ls | percol --initial-index `tmux ls | awk '/attached.$/ {print NR-1}'` | cut -d':' -f 1 | xargs tmux switch-client -t are sh compatible too. On Wed, May 6, 2015 at 11:16 AM Nicholas

Re: How to switch window without loading the shell init?

2015-05-06 Thread Kaushal
I tried that but as I mentioned in the parallel thread, tcsh was still load first as my default-shell was tcsh. Changing default-shell to /bin/sh and default-command to tcsh fixed everything. I now just need to make sure that I pass in a bash/sh compatiable command instead of a tcsh/csh command.

Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Leonardo Brondani Schenkel
Hello, I'm using tmux 1.9a in Terminal.app 343.7 (OS X 10.10). I noticed by accident that when I press Option+Left/Right I get different escape codes, depending if the $TERM variable outside tmux is set to 'nsterm' or 'xterm'. For example, when pressing Option+Left: $TERM=='nsterm': ^[^[OD or

Re: How to switch window without loading the shell init?

2015-05-06 Thread Nicholas Marriott
Most shells have a way to specify different init files for interactive and noninteractive shells (such as setting ENV in .profile for ksh). Or if you're using a sh-like shell you could do something like this in the profile: case $- in *i*) export SHELL_CONFIG_LOADED=1 ;; esac

Re: How to switch window without loading the shell init?

2015-05-06 Thread Kaushal
Thanks for the quick replies. But unfortunately, I have to use the tcsh shell and I can put in my custom init stuff only in a ~/.alias which is sourced by a company maintained ~/.cshrc. In that ~/.cshrc, I already have: # skip remaining setup if not an interactive shell if ($?USER == 0 ||