A prettier plugin for ssh config.
Host *
HostName localhost
User root
Host abc
HostName 127.0.0.1
User nginx
npm install prettier prettier-plugin-ssh-config --save-dev
prettier --write ssh_config
- ssh.config
- ssh_config
- ssh-config
- sshconfig
- *.ssh_config
- *.ssh-config
- *.sshconfig
To support custom config name:
// .prettierrc.json
{
"overrides": [
{
"files": ".ssh/config",
"options": {
"parser": "ssh-config"
}
}
]
}
This plugin took options from prettier. Support useTabs/tabWidth/endOfLine
, not support printWidth/requirePragma/insertPragma
.