Dynamically rename the tmux window or screen title#22
Open
phiberr wants to merge 1 commit intovaniacer:masterfrom
Open
Dynamically rename the tmux window or screen title#22phiberr wants to merge 1 commit intovaniacer:masterfrom
phiberr wants to merge 1 commit intovaniacer:masterfrom
Conversation
the Host being connected to. This will also revert on disconnect to prior title. Added methods to go_to_target method
vaniacer
requested changes
May 3, 2023
Owner
vaniacer
left a comment
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.