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

doesn't work on remote mac if Textmate installed & opened on the remote mac #75

Open
benpptung opened this issue Oct 15, 2019 · 7 comments
Labels

Comments

@benpptung
Copy link

I have been using rmate in all my remote servers. Recently, I've just bought another mac laptop, so I hope I can use rmate on it too.

However, it's interesting if the TextMate is opened on the remote mac, the rmate command will open the TextMate on the remote mac. I have to quit TextMate on the remote mac, so rmate will open the file locally.

I'm wondering if anything I can do to fix this? Thank you :)

@aurora
Copy link
Owner

aurora commented Oct 15, 2019

I am not sure if i understand your problem properly:

You are using a MacBook and want to open TextMate locally using rmate rather than opening the file on a remote Mac? Where is rmate located in this case - on your local Mac or on the remote Mac?

@benpptung
Copy link
Author

Sorry for misunderstanding. That said, I have 2 mac computers A and B.

Using mac remote login, I can login B from A, and I hope to use rmate to open TextMate locally in A. The rmate is installed in B under ~/bin already.

In B, if TextMate is installed and opened, the rmate will open the file in B using TextMate. If I quit B's TextMate, rmate will work as expected, and open the file in A using A's TextMate.

@aurora
Copy link
Owner

aurora commented Oct 16, 2019

Thanks for clarification! I have to admit, that i never tested this case, will do so.

@tiktuk
Copy link
Contributor

tiktuk commented Oct 27, 2019

Me and my colleague had the same problem. Worked around it using aliases to rmate which different port numbers.

@aurora aurora added the bug label Oct 30, 2019
@aurora
Copy link
Owner

aurora commented Oct 30, 2019

Sorry, will take a little longer to fix, because i am currently very busy with other things. I hope will be able to get back to this mid Novembre.

@randy3k
Copy link
Contributor

randy3k commented Mar 16, 2020

I use this to change port number

.bashrc file on server

if ([[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]); then
    export RMATE_PORT=52658
fi

.ssh/config in local

Host example.com
    RemoteForward 52658 localhost:52698
	User user

@SuperSandro2000
Copy link

if [[ -n $SSH_CLIENT || -n $SSH_TTY ]]; then
    export RMATE_PORT=52658
fi

or shorter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants