I'm trying to get the title of the active pane in the status line to display $PWD when no command is active, and the current command when a command is active. So, for example, if I cd to ~/Mail in the active pane of window 7 the status line would be simply: 7*Mail
Then if I invoke the vifm file browser: 7*vifm view a file with less: 7*less or edit a file with vim: 7*vim And upon quiting any of these & returning to the command prompt: 7*Mail I can get the $PWD part of that with this in my zshrc : precmd () { [[ $TERM == tmux* ]] && printf "\033]2;`basename ${PWD}`\033\\" } and a #T in ~/.tmux.conf : setw -g window-status-current-format '#I#F#T ' setw -g window-status-format '#I#F#T ' That works fine for displaying the working directory of a shell, but now I'm trying to figure out a way to display the name of a command when a command is active...maybe via a zsh function? The #W sequence will show the name of whatever command is current, but on an open shell it just displays "zsh" (as expected), where I'd like to have displayed $PWD instead. I suppose I could do something like: setw -g window-status-current-format '#I#F#T-#W ' setw -g window-status-format '#I#F#T-#W ' Which would display $PWD and the active command together...but I'm looking for something a bit more concise. Perhaps tmux-powerline [1] could address some of this (though I haven't delved into it much yet), but I was hoping to find a more lightweight solution. [1] https://github.com/erikw/tmux-powerline Regards, John -- John Magolske http://B79.net/contact ------------------------------------------------------------------------------ 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