[GRLUG] bad commands
John J. Foerch
jjfoerch at earthlink.net
Thu Mar 11 14:21:30 EST 2010
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
--
John Foerch
More information about the grlug
mailing list