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

2015-05-06 Thread Kaushal
her would be to specify a different > .bashrc: bash --rcfile ".bashrc_light" -c "tmux ls | blah". > > On Wed, May 6, 2015 at 10:49 AM Kaushal wrote: > >> Hi, >> >> I use the tmux split-window function only temporarily at times to do some >> quick

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

2015-05-06 Thread Kaushal
y 6, 2015 at 11:16 AM Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > 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

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

2015-05-06 Thread Kaushal
his in > the profile: > > case "$-" in > *i*) > export SHELL_CONFIG_LOADED=1 > ;; > esac > > > > On Wed, May 06, 2015 at 02:47:20PM +, Kaushal wrote: > >Hi, > >I use the tmux split-window function only tempor

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

Re: What's new and incompatible in origin/ta/new-hooks

2015-01-30 Thread Kaushal
Alright, Also I get [lost server] every time I do *source-file ~/.tmux-2.0.conf* from the tmux command-prompt. It is the same file I passed to the -f argument when starting the tmux server. But it seems the source-file command doesn't work. -- Kaushal Modi On Fri, Jan 30, 2015 at 9:

Re: What's new and incompatible in origin/ta/new-hooks

2015-01-30 Thread Kaushal
I forgot to mention that when I started the new tmux server using *tmux -Ltemp -f/home/$USER/.tmux-2.0.conf* , it printed the "can't establish current session" message twice. Is that expected? -- Kaushal Modi On Fri, Jan 30, 2015 at 9:00 AM, Kaushal wrote: > Hi, > > I

What's new and incompatible in origin/ta/new-hooks

2015-01-30 Thread Kaushal
le? Or did new variable names replace the above? Thanks. -- Kaushal Modi -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your h

Re: Quick way to scroll up in the pane to the previous occurrence of prompt

2015-01-21 Thread Kaushal
That was my question. I wasn't sure if there's an internal way to send a signal to tmux when a command prompt appeared on the shell. Thanks. -- Kaushal Modi On Jan 21, 2015 4:04 AM, "Nicholas Marriott" wrote: > How would tmux know you were entering something at a comma

Quick way to scroll up in the pane to the previous occurrence of prompt

2015-01-20 Thread Kaushal
the point in pane history where I entered that last command. -- Kaushal Modi -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashbu

Re: How can I copy the last few lines of pane history programmatically?

2015-01-15 Thread Kaushal
Thanks! tmux capture-pane -p -S 50 -E -50 -J >! /tmp/temp.txt Above does the magic! :) -- Kaushal Modi On Thu, Jan 15, 2015 at 4:53 PM, Thomas Adam wrote: > On 15 January 2015 at 21:49, Kaushal wrote: > > But to begin with, I am unable to find a way to copy the last few lines

How can I copy the last few lines of pane history programmatically?

2015-01-15 Thread Kaushal
d' to that log location or open that log in a chosen editor. But to begin with, I am unable to find a way to copy the last few lines of the current pane history using a script. Is it possible to do so? Thanks.

Re: stdout becomes scrambled at times when running ag

2014-07-17 Thread Kaushal
@Michael, thanks for the tip on using `reset`. Now at least I don't need to kill the pane every time that happens :) @Nicholas, I'll update from git Thanks for such quick replies! -- Kaushal Modi On Thu, Jul 17, 2014 at 3:24 PM, Nicholas Marriott < nicholas.marri...@gmail.com>

stdout becomes scrambled at times when running ag

2014-07-17 Thread Kaushal
otfiles/blob/master/.tmux.conf -- Kaushal Modi -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that p

Re: Process in pane freezes

2014-05-02 Thread Kaushal
That was it!! You are a savior!! Thanks! I was able to recreate that dreading freeze using Ctrl-s. I'm unbinding that key from tcsh immediately. I wonder why anyone would want to freeze their terminal.. an April fools joke? :) -- Kaushal Modi On Fri, May 2, 2014 at 4:16 AM, Balazs Kezes

Re: Process in pane freezes

2014-05-01 Thread Kaushal
I don't recall the exact set of keys. But this issue has happened only when I am editing something at the command prompt. Usually the keys involved are "C-a", "C-e", "C-d", "C-f", "C-b" and "C-c". Here's my .tmux.conf: https

Process in pane freezes

2014-05-01 Thread Kaushal
use the key binding to kill that pane. How can I help you debug this? Thanks. -- Kaushal Modi -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests acros

Different results when running the same script directly in shell vs through tmux run-shell

2014-03-02 Thread Kaushal
I use tmux 1.9a in xterm, tcsh. I tweak a lot with my shell init script and I like to source it again almost every day in all panes/windows/sessions. I tried doing that through run-shell in tmux but it didn't work and for now I am using an alias to do the job. -- alias tcmdall "tmux list

Re: Getting tcsh warnings when running .csh scripts using run-shell

2014-03-02 Thread Kaushal
Thanks! That was it! :) I'll make it a point to always start tmux from my home dir. -- Kaushal Modi On Sun, Mar 2, 2014 at 11:51 AM, Balazs Kezes wrote: > On 2014-03-01 08:35, Kaushal wrote: > > The script runs fine, but I get these tcsh messages in the pane where > &

Getting tcsh warnings when running .csh scripts using run-shell

2014-03-01 Thread Kaushal
n/char) set height_factor = `expr 1200 / 59` set width_factor = `expr 1600 / 174` set pane_height_norm = `expr $pane_height \* $height_factor` set pane_width_norm = `expr $pane_width \* $width_factor` if ( $pane_width_norm > $pane_height_norm ) then