[GRLUG] bad commands
Scott Huffman
sjhuffman at gmail.com
Fri Mar 12 09:38:12 EST 2010
On Thu, Mar 11, 2010 at 2:21 PM, John J. Foerch <jjfoerch at earthlink.net> wrote:
> On Thu, Mar 11, 2010 at 01:43:01PM -0500, Scott Huffman wrote:
>> On Thu, Mar 11, 2010 at 1:35 PM, <topher at t1kdevelopment.com> wrote:
>> > I deleted JT's post before my reply came to mind, so pretend this is a
>> > reply to his.
>> >
>> > Are there any commands you type incorrectly so often that you make an
>> > alias for it?
>> >
>> > Topher
>>
>> tmux attach-session
>>
>> It's too long, so I created alias tmad = "tmux attach-session"
>
>
> Bravo, another tmux fan! I wrote a convenience script for tmux ~/bin/term
> which either attaches the given session, or starts it if needed. It looks
> like this:
>
>
> #! /bin/bash
>
> if tmux has-session -t "$1"; then
> exec urxvtc -e tmux attach -t "$1"
> else
> exec urxvtc -e tmux new -s "$1"
> fi
Nice, I'll have to try that out. I usually just assume that I have a
session detached somewhere :)
>
>
> --
> John Foerch
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>
~Scott Huffman <sjhuffman at gmail.com>
More information about the grlug
mailing list