Hi, I run tmux with urxvt, now i have some demands, the flowing is the command i execute when my linux startup: urxvt -title 'urxvt-tmux' -e zsh -c 'tmux -2 new-session -s urxvt -n window-1 \; new-window -n window-2'
you can see that i create two windows when startup: window-1 and window-2, now i want that in window-1 it 'cd ~/software' and execute some shell commands like htop, this is just a example. Is there any method that it can cd to ~/software and execute htop automatically just like that after i execute the : urxvt -title 'urxvt-tmux' -e zsh -c 'tmux -2 new-session -s urxvt -n window-1 \; new-window -n window-2' and choose window-1, then type cd ~/software and htop manually! there is a method is that: urxvt -title 'urxvt-tmux' -e zsh -c 'tmux -2 new-session -s urxvt -n window-1 htop \; new-window -n window-2' but it can not excute more than one commands in a window, and when i type 'q', it will quit htop and quit window-1, the window-1 disappeard, i don't want this! set-option -g set-remain-on-exit on the above config can let the window not closed, but the pane dead, i don't want this either! is there any other method? thanks a lot! ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users