Skip to content

Conversation

@phiberr
Copy link

@phiberr phiberr commented Jan 25, 2023

Added new methods to rename the tmux window or screen title to match the Host being connected to. This will also revert on disconnect to prior title. Added methods to go_to_target method.

I've used this function for a couple of years, thought others might like it.

the Host being connected to.  This will also revert on disconnect to
prior title.  Added methods to go_to_target method
Copy link
Owner

@vaniacer vaniacer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for update. But this checks will be start every time even for non tmux users.
Could you please change it like, add check in the beginning of script if it tmux and set a var like 'tmux_true' or something. And in this functions add: [[ $tmux_true ]] || return

Or even create a separate function for tmux like go_to_target_tmux(){...} and change go_to_target definition to go_to_target$tmux_true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants