Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add after-close-window hook #659

Closed
4nd3r opened this issue Nov 20, 2016 · 2 comments
Closed

add after-close-window hook #659

4nd3r opened this issue Nov 20, 2016 · 2 comments

Comments

@4nd3r
Copy link

4nd3r commented Nov 20, 2016

i would like to turn off status when there's only one window.

something like:

set-hook -g after-new-window  'if "[ #{session_windows} -gt 1 ]" "set status on"'
set-hook -g after-close-window 'if "[ #{session_windows} -lt 2 ]" "set status off"'
@4nd3r
Copy link
Author

4nd3r commented Nov 20, 2016

looks like with bleeding edge this works:

set-hook -g after-new-window 'if "[ #{session_windows} -gt 1 ]" "set status on"'
set-hook -g pane-exited 'if "[ #{session_windows} -lt 2 ]" "set status off"'

@4nd3r 4nd3r closed this as completed Nov 20, 2016
@lock
Copy link

lock bot commented Feb 16, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant