You are not logged in.
I'm picking up tips, thanks!
And, got Bolts irssi script in place, though it'll be a while before I'm more than a beginner with irssi. Been using for months though just got my basic auto-login config running 2 days ago. That was cool, though truly novicey.
Cirk, your script is amazingly timely. It seems like something that is in the direction I must go with tmux, xmonad, zsh.
I keep a list of questions, ponderings etc., that covers xmonad and tmux, and zsh, urxvt, mutt, fdm, msmtp and about 20 more I'm really really dedicated to becoming intermediate with and then beyond.
Stumble 1:
I start xmonad, then I hit M+p (mod4 and p), I get a urxvt term, then for the initial tumx session I start tmux AND zsh with an alias in my .bashrc like so:
alias t='tmux new-session -s tmux1 zsh'
This is probably not the best plan for more than two reasons. hehe
So, stumble 1 here is all about having tmux and zsh started a cool way. I don't mind manual at all, though whenever I split a tmux window I have to start zsh every time for the new pane. um, that can't be right. That's gotta be 1000 miles from guru.
Stumble 2: [related to the above]
When I detach tmux or quit xmonad then restart it I need to reattach tmux, and if I just hit my alias 't'
alias t='tmux new-session -s tmux1 zsh'
then bash tells me:
duplicate session: tmux1
If I try to run my alias again that is. As it has a new-session name of tmux1 of course.
SO: basically it's a mess I can and do happily live with, knowing there's the guru ways, and, my way for now.
1) I need to boot with bash I'm sure enough of that.
2) After/during/before xmonad starts stuff can happen. (.xinitrc etc.:--))
3) I ALWAYS use my xmonad M+p command to open urxvt term which currently opens with bash.
4) Then I hit my alias 't' which starts a questionable command: tmux new-session -s tmux1 zsh
5) now with every NEW pane I open in tmux session I have to switch from bash to zsh. I use 'z' alias to call zsh.
6) Also, if I detach tmux in any way, and, while again in bash try my alias 't' I am given the duplicate session: tmux1 message. obviously.
So, I will continue to do this until I discover the absolutely the most flexible, 'less is more' way to:
- start tmux with zsh running, and have each pane I open up IN tmux start with zsh and not bash.
*** Figuring this out may uncover a better way to have more than one tmux session start-able,
and be able to detach and attach well without 'duplicate session' messages etc.
It's all fairly obvious why/what things are amaturish for me.
Knowing what's best is hard, and good to find. :--))
Discovery and implimenting is so cool!
I can wait. :---)) I've done many many 'for days and day and days' long study, search and then found its!
I think this one is important. Yet, after I get tmux and zsh happy with me I will have to stop loving linux so much it's all I do!
for a while. maybe one month of not adjusting setting. I'm down to about 20 programs and 20 utils or about that give or take.
happy sunday everyone.
Last edited by yvonney (2009-12-06 09:07:07)
Offline
duplicate post - sorry - can't delete this?
Last edited by yvonney (2009-12-06 08:20:32)
Offline
1) I need to boot with bash I'm sure enough of that.
May I ask why? It sounds like you're a dedicated zsh user. Is there some very particular reason you want bash when you initially log in?
thayer williams ~ cinderwick.ca
Offline
thayer ! Hi, um I was told that I'd get into trouble changing to zsh everywhere. Now of course I'm not even close to explaining what I read/heard/was told. um, perhaps you mean I can have zsh take over right after boot? do tell!
oh, read again. so, yes, after I login would be terrific! I bet some of the best ways tie together nicely (zsh/tmux etc.) over the next little while. I will read about changing to zsh after login. thanks!
Last edited by yvonney (2009-12-06 08:28:15)
Offline
You heard wrong. Yes, symlinking /bin/sh to /bin/zsh and such will (obviously) cause trouble, so what you do is:
chsh -s /bin/zsh
Now your user account's login shell with be zsh, and after you relog, xterm/urxvt/screen/tmux/etc will automatically use zsh Any scripts shebanging sh/bash/etc will still work.
Last edited by JohannesSM64 (2009-12-06 08:29:46)
Offline
FABTASTIC! much appreciated thayer/JohannesSM64 I'll read about chsh and study that and do that. whew! great.
EDIT: read a couple of webpages on chsh.
EDIT :
chsh -s /bin/zsh THEN restarted (must obviously leave/logout the 'being used' shell to have it change)
- AMAZING brain/time-saver for me - GREAT thanks! :-)
Last edited by yvonney (2009-12-06 09:33:28)
Offline
I just switched from screen to tmux ---- and i love it!!!
Same for me.
Just this morning I was trying to configure Emacs-style bindings in GNU Screen's copy-mode. But In the end I gave up in disappointment. Everything in tmux seems to Just Work.
Offline
FABTASTIC! much appreciated thayer/JohannesSM64 I'll read about chsh and study that and do that. whew! great.
EDIT: read a couple of webpages on chsh.Then I crashed out of xmonad and typed:
chsh -s /bin/zshstartx
I've not figured it out yet. xmonad started as usual with bash. maybe I need to restart or add the chsh -s /bin/zsh somewhere.
Or maybe I've got bash over-riding something. .bashrc ? .bash_profile dunno yet.exciting all that, as it's still an unknown.
EDIT 2: ummmm, oh, I'm guessing I have to re-login for it to work. BIG thanks for the tips. This is surely the beginning of stream-lining for me with tmux/zsh. For my immediate goals that is. :-)
Yes, I did say you had to relog
Offline
oooooo magic timing. JUST edited my post above... your quote is the only copy now as I just did a big thanks and got all economical in my above post. ie. made it small. it's be a me-verbose sorta off-topic night! :--)
Last edited by yvonney (2009-12-06 09:52:24)
Offline
TMUX - has this one been mentioned. Sorry if it has. This one's for people like me who're not yet man pages carnivors.
MOMENTARY NUMBERING OF PANES - for selecting
Create a bunch of panes in a single tmux window. ctrl-a (or whatever your initial tmux keys are)
then shift-% or shirt-" depending of horz. or vert. panes desired.
Hit your ctrl-a or ctrl-b (again, whatever your tmux main key sequence is)
Then hit letter 'q'
Then for the second or two that you'll get a cool 'purple' numbering of each pane
you can just hit the number and go straight to the pane.
So, with panes if you have a bunch of them, cycling around them and looking for a cursor is slow or worse.
This way the 'q' key tells you the numbers of the panes and you've got a second to select one before the numbers, AND the ability to choose this way vanishes. cool cool cool
This, along with now having zsh as my shell is REALLY REALLY gonna save me an hour or two a week. it was a somewhat tiresome starting zsh for every pane, every time.
Last edited by yvonney (2009-12-06 10:00:37)
Offline
Hi.
I did read the man page of tmux and couldn't find something like this...
Is there a way so the status bar display the window list in a different way?
I mean, instead of "0:zsh*" display something like "(0:zsh)"?
Thanks and greetings.
Offline
Forgive my ignorance, but I've never used screen or tmux. I always use a simple window manager with lots of urxvt windows to do my stuff.
So what am I missing that is so great?
Last edited by Wilco (2009-12-06 18:48:50)
Offline
Woooooot!!!!
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
@YamiFrankc
if you go to the IRC channel
irc.freenode.net
channel: #tmux
you'll likely get answer right away. Also, someone here knows perhaps.
You're using 1.1 version I expect. (came out a few weeks ago)
@Wilco
The gurus here I would say can certainly tell you. I think the way tmux splits screen and can be attached/detached are just the basic reasons.
There's gotta be a dozen compelling reasons. I'm still too lacking skill and understanding to say. Asking google the benefits of linux terminal multiplexer and wikipedia also and the links in first post here would say many things I believe.
lilsirecho going, "Woooooot!!!!" is also a very good indicator I'd say. :--)
Last edited by yvonney (2009-12-06 21:12:59)
Offline
this could be very cool for the basics and more:
http://fedoratux.blogspot.com/2009/11/m … creen.html
added it to the bottom of the first post - page 1 here.
Last edited by yvonney (2009-12-12 00:08:05)
Offline
I tried to use Screen some time, but found it confusing and I didn't had the time to read the whole man.
Some weeks ago I tried Tmux and love the defaults. Since my use for it is pretty limited, it's enough.
The Wheel weaves as the Wheel wills, and we are only the thread of the Pattern."
—Moiraine Damodred
Offline
GNU screen itself ist cool but this is so freaking awesome that I will drop screen for it. Thanks for the tip!
But I still wonder how I can activate vi-keys when in copy-mode. Any ideas?
Last edited by essence-of-foo (2009-12-12 13:44:54)
Offline
GNU screen itself ist cool but this is so freaking awesome that I will drop screen for it. Thanks for the tip!
But I still wonder how I can activate vi-keys when in copy-mode. Any ideas?
set-option -g status-keys vi
set-window-option -g mode-keys vi
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Officially hijacking thread to be "Post your .tmux.conf thread"
I think my status bar is kinda cool, the active window is red/bold, while the others are in white.
# TMUX config - Kitty
# File: .tmux.conf
# Set Copy mode to escape key
unbind [
bind Escape copy-mode
# Make mouse useful in copy mode
set-window-option -g mode-mouse on
# Use Vi mode
set-window-option -g mode-keys vi
# More straight forward key bindings for splitting
unbind %
bind | split-window -h
bind h split-window -h
unbind '"'
bind - split-window -v
bind v split-window -v
# History
set-option -g history-limit 1000
# Terminal emulator window title
set-option -g set-titles on
set-option -g set-titles-string '#S:#I.#P #W'
# Status Bar
set-option -g status-justify centre
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-interval 5
set-option -g status-left '#[fg=magenta] #H#[default]'
set-option -g status-right '#[fg=yellow]%k:%M #[fg=blue]%a,%d-%b#[default] '
# Highlighting the active window in status bar
set-window-option -g window-status-current-attr bold
set-window-option -g window-status-current-fg red
# Notifying if other windows has activities
set-option -g visual-activity on
set-window-option -g monitor-activity on
# Clock
set-window-option -g clock-mode-colour green
set-window-option -g clock-mode-style 24
Last edited by Kitty (2009-12-17 05:07:10)
/etc/rc.d/ is where daemons reside. Beware.
Offline
How do a man use that nifty "screen -x" thing in tmux? I want to attach to the same session in several windows on my desktop, and from what I've read 'tmux attach' should do it... though when I do that and switch window in attached #2, the window also changes in attached #1, which seems pointless.
Offline
#
Last edited by patroclo7 (2009-12-20 15:11:08)
Mortuus in anima, curam gero cutis
Offline
How do a man use that nifty "screen -x" thing in tmux? I want to attach to the same session in several windows on my desktop, and from what I've read 'tmux attach' should do it... though when I do that and switch window in attached #2, the window also changes in attached #1, which seems pointless.
Your question seems to be in the FAQ (I have not experimented with the answer:
"* How do I attach the same session to multiple clients but with a different
current window, like screen -x?
One or more of the windows can be linked into multiple sessions manually with
link-window, or a grouped session with all the windows can be created with
new-window -t.
"
Mortuus in anima, curam gero cutis
Offline
I tried to use Screen some time, but found it confusing and I didn't had the time to read the whole man.
Some weeks ago I tried Tmux and love the defaults. Since my use for it is pretty limited, it's enough.
Same story.
Offline
dmz wrote:How do a man use that nifty "screen -x" thing in tmux? I want to attach to the same session in several windows on my desktop, and from what I've read 'tmux attach' should do it... though when I do that and switch window in attached #2, the window also changes in attached #1, which seems pointless.
Your question seems to be in the FAQ (I have not experimented with the answer:
"* How do I attach the same session to multiple clients but with a different
current window, like screen -x?One or more of the windows can be linked into multiple sessions manually with
link-window, or a grouped session with all the windows can be created with
new-window -t.
"
Yes, I found it! Though I really do not understand what I'm supposed to do. new-window -t creates a new window in the first session, and so does link-window.
If I can not find a decent solution to this I'll have to bring back screen again... sadly, since tmux seems very good in other ways (especially the splitting)...
Offline
I don't know if their IRC channel (#tmux on freenode.org) is any good, but have you asked in there? I have not switched but am curious to know the answer.
Last edited by steve___ (2009-12-23 19:25:15)
Offline