Suppose I want to write this keybinding

bind-key -T prefix C-F2 command-prompt -I "#S" "rename-session -- '%%'"

or, 

bind-key -T root M-d if 'n=`tmux list-windows | grep -c ^`; [ $n -gt 1 ]' { 
# Ctrl+d
       kill-window # Kill the current window.
}

or,

bind-key    -T root         WheelUpPane          if-shell -F 
"#{||:#{pane_in_mode},#{mouse_any_flag}}" { send-keys -M } { copy-mode -e }

What will be the workflow.

I mean, when we create a shell script, we write code, run and test.

How do we write  tmux scripts. I mean there are tmux specific variables and 
functions  `#{||:#{pane_in_mode}`, `#{session_name}` etc. These will not 
work in regular shell script. So, how does it work?

What will be the workflow for writing tmux scripts.

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/5cd72635-dfab-4e72-9d00-1b627318da54n%40googlegroups.com.

Reply via email to