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

display directive in tmux.conf hides session details #7

Closed
macarthy opened this issue Jun 20, 2013 · 6 comments
Closed

display directive in tmux.conf hides session details #7

macarthy opened this issue Jun 20, 2013 · 6 comments

Comments

@macarthy
Copy link

I have

bind r source-file ~/.tmux.conf ; display "Reloaded tmux.conf!"

in my conf file.

That means I don't get to see the ssh login details to give to my "mates"

@nviennot
Copy link
Member

For the moment, you can type tmate show-messages in a shell within the tmate session.

Soon, there will be dedicated status bar or tmate. Related: #2

@sheerun
Copy link

sheerun commented Jan 16, 2014

Can't tmate just run "tmate show-messages" when starting session?

@nviennot
Copy link
Member

that's tempting, but what if you launch tmate with vim instead of a shell, it's going to be weird.
But perhaps it's not really a use case worth worrying about.
Also, putting the connection string in the clipboard would be a good thing to do

@megalithic
Copy link

i like the interim suggestion of dumping the tmate connection string into the system clipboard.

@acook
Copy link

acook commented Apr 23, 2015

tmate show-messages should end up in the main documentation, in the readme, in the --help etc. An example .tmate.conf which runs it automatically during a shell session would be good too.

@megalithic
Copy link

@acook here's what i use.. after i fire up tmate i have a zsh function that is the following:

tmateip () {
  output=$(tmate show-message | grep -m 1 "Remote session:")
  echo ${output#*session: } # display it
  echo ${output#*session: } | pbcopy # and copy it to clipboard
}

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

No branches or pull requests

5 participants