Re: Send a command to the command prompt from the command line

2014-10-03 Thread Paolo Bolzoni
Works perfect, I knew I was missing the obvious. But I didn't know I could use --tmux command-- to send a command to che current tmux. Thanks! On Thu, Sep 25, 2014 at 6:27 PM, Nicholas Marriott wrote: > Try: > > alias c='clear; [ -n "$TMUX" ] && tmux clear-history' > > > On Thu, Sep 25, 2014 at

Re: Send a command to the command prompt from the command line

2014-09-25 Thread Nicholas Marriott
Try: alias c='clear; [ -n "$TMUX" ] && tmux clear-history' On Thu, Sep 25, 2014 at 06:16:48PM +0200, Paolo Bolzoni wrote: > Dear list, > > Sometime I clear the screen to exec a command with a long output > that I later navigate using the tmux history ability. > > So far so good, without tmux t

Send a command to the command prompt from the command line

2014-09-25 Thread Paolo Bolzoni
Dear list, Sometime I clear the screen to exec a command with a long output that I later navigate using the tmux history ability. So far so good, without tmux the command "reset" works fine. But with tmux I have to use clear and write clear-history in tmux command prompt. I would like to write an