***: dj_goku has joined #arpnetworks
dj_goku has quit IRC (Changing host)
dj_goku has joined #arpnetworks
_Zodiac has joined #arpnetworks
_Zodiac has left RandalSchwartz: mnathani_?
oops... gotta go... it'll have to wait until later. anisfarhana: Hello everyone. ***: mnathani_ has quit IRC (Ping timeout: 252 seconds)
dj_goku has quit IRC (Ping timeout: 244 seconds)
dj_goku has joined #arpnetworks
dj_goku has quit IRC (Changing host)
dj_goku has joined #arpnetworks
dj_goku has quit IRC (Ping timeout: 250 seconds)
dj_goku has joined #arpnetworks
dj_goku has quit IRC (Read error: No route to host)
dj_goku has joined #arpnetworks
mnathani_ has joined #arpnetworks mnathani_: RandalSchwartz
I'm back RandalSchwartz: hey
I have a script that does that exact thing
let me pastebin it for you
... http://pastebin.com/nXfbyuB1
the key is using "send-keys" to load the initial commands
presuming you might want a shell interaction later.
mnathani_? ***: mhoran has quit IRC (Remote host closed the connection)
mhoran has joined #arpnetworks
ChanServ sets mode: +o mhoran mnathani: thanks
hmm paste has been removed though JC_Denton: mnathani: tmuxinator might do what you want RandalSchwartz: Yeah - you came back too late mnathani_: This is what I managed to piece together from the interwebs: http://paste.ubuntu.com/10231075/ RandalSchwartz: yeah, that's similar to what I pasted.
mine reattaches nicely though
let me paste again
... http://pastebin.com/tPjDtyeZ
I name the session, and if I invoke the script again, it just reattaches me
so I can close the window and come back later
Hmm. I can simplify that if/then/else, since the exec would skip the rest of the file mnathani_: what do the get.* scripts look like? RandalSchwartz: they run some sort of git fetch stuff
this is my morning "sync with the world" window
so basically just think of them as "actions to perform in that window" mnathani_: right
I like how tmux is so flexible / scriptable RandalSchwartz: but having it be tmux, I can close that window (sometimes accidentally) and then just run my get.all command again (that script), and I'm back in the middle of what it's doing
the ones that run with && exit close themselves
so the tabs automatically reduce
for the other ones, I might do "make.git && exit" if git has changed
and again, it's fire-and-forget
if all goes well, the tab goes away
if not, I have an interaction directly with history availble
tmux rocks :)
my normal connection to a host is "ssh -t foo tmux att"
and so in my .tmux.conf on that host...
new-session -smain
so that if it runs the .tmux.conf, it makes a new session to attach to
but if it's already running, that's skipped mercutio: damnit randal
i'm trying to go to your links and it says iot has been removed twice :)
i used to have good enoguh session management with linux virtual console in text mode RandalSchwartz: of course mercutio: but i've never had anything halfway decent since using X RandalSchwartz: I don't put permanent things on pastebin
it's bad enough using pastebin in the first place mercutio: yeah
i expire mine after a week RandalSchwartz: ok, lemme do one more
and why do they have "bash" highlighting, but not any real shell?
... http://pastebin.com/AUy0bdGj
the moment I see I'm in bash, I try to execute a real shell mercutio: oh i see how it works
randal: i have that habit too
like if i'm doing something on someone elses machine and they have bash i shift to zsh before continuing regardless.
err regardless if i'm going to take any advantage of it or not
although for some reason some people seem to have bash shells that don't even tell you the current path -: mkb has that mkb: well just ksh but
I usually type PS1=$ and unalias -a before working on someone elses shell RandalSchwartz: bash suffers from being GNU-like :) mkb: a surprising number of people have prompt lines that take up half the screen RandalSchwartz: Yeah, that's weird. ***: NiTeMaRe has quit IRC (Ping timeout: 245 seconds)
NiTeMaRe has joined #arpnetworks
RandalSchwartz has quit IRC (Ping timeout: 245 seconds)
NiTeMaRe has quit IRC (Ping timeout: 245 seconds)
gizmoguy has quit IRC (Ping timeout: 245 seconds)
gizmoguy has joined #arpnetworks
NiTeMaRe has joined #arpnetworks mercutio: mkb: my prompt is prety huge
http://pastebin.com/GmrtDySh
i'm just using some bundled thing
prompt clint
weird prompt -p makes my urxvt go slow now ***: RandalSchwartz has joined #arpnetworks mercutio: the fade prompt got really slow ***: NiTeMaRe has quit IRC (Ping timeout: 245 seconds)
NiTeMaRe has joined #arpnetworks