You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think part of the reason you're having to jump through hoops in the functions is that you allow Host hostname to occur in the middle of its definition block. I suggest that if you tighten that so that the block must have that line as its first, then it will make parsing the file much easier and intuitive, mimicking the behavior more of SSH's config file (I believe).
I think part of the reason you're having to jump through hoops in the functions is that you allow Host hostname to occur in the middle of its definition block. I suggest that if you tighten that so that the block must have that line as its first, then it will make parsing the file much easier and intuitive, mimicking the behavior more of SSH's config file (I believe).
oh i think this was to be able to mount by directory, in those cases i had no way to also get the hostname. the intention there was that would be last however, didn't consider in the middle iirc
If I have two hosts defined, something like
and then call
sshmount -w host
, then it will bring in arguments from both host blocks.Adding one more trailing
---
to close out "otherhost" now results inno unique match!
, which makes a little more sense, but two things then:---
on the last host should not cause different behavior, I think; andI suspect the issue is in
fetchHostAttribute
, looking.The text was updated successfully, but these errors were encountered: