You can use either, it won't make any difference. There is no way to create a session except with new-session.
On Wed, 1 Sep 2021, 17:37 Richard Redlon, <[email protected]> wrote: > I've looked around the manual and can't seem to find a difference between > using: > > `set-hook -g after-new-session[10] somecommand` > > and > > `set-hook -g session-created[10] somecommand` > > > It's not just these: as the man page says, most commands have an > after-commandname hook and there's what I'm calling the "noun-verb" hooks " > (e.g. > `session-created`) listed under the HOOKS section. > When would you use an after-hook instead of its corresponding noun-verb > hook? > > -- > 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 [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/CAGmUSVeREmxq5ZZHNkusppkzhPukL9W%3Dm7O8QD2edMh2ojtMiA%40mail.gmail.com > <https://groups.google.com/d/msgid/tmux-users/CAGmUSVeREmxq5ZZHNkusppkzhPukL9W%3Dm7O8QD2edMh2ojtMiA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcFYDHQrvL7XU6w3VOBKfC-H%3D6NyYAjGOPJC%3DMVOgjqmuA%40mail.gmail.com.
