Menu

#542 ssh_config edit mode - need help

none
open
nobody
None
5
2017-12-20
2017-12-20
Skeeve
No

Hi!

I created attached edit mode for ssh config files, but it doesn't work exactly as I expected.

I want lines starting with "Host" to be unindented and all following lines to be indented.

But with attached mode, all lines following "Host" are double indented and a new Host line get unindented by just one tab.

Example (-> stands for a tab)

Host test
->->hostname test.example.com
->Host test2
->->->hostname test2.example.com

While it should be

Host test
->hostname test.example.com
Host test2
->hostname test2.example.com

Can someone please have a look and help?

1 Attachments

Discussion


Log in to post a comment.