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

Add OSX user agent service #86

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ Options:
-V, --version Print version
```

`ra-multiplex server` can run as a systemd user service, see the example `ra-mux.service`.
`ra-multiplex server` can run as a system user service:
* On `systemd` available systems see the example `ra-mux.service`.
* On `OSX Launchd` systems see the example `ra-mux.plist`

Configure your editor to use `ra-multiplex` as `rust-analyzer`, for example for
CoC in neovim edit `~/.config/nvim/coc-settings.json`, add:
Expand Down
27 changes: 27 additions & 0 deletions ra-mux.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.github.ra-multiplex</string>
<key>ProgramArguments</key>
<array>
<string>[PATH_TO_BIN]</string>
<string>server</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>[HOME]/.cargo/bin</string>
</dict>
<key>StandardOutPath</key>
<string>/tmp/ra-multiplex.log</string>
<key>StandardErrorPath</key>
<string>/tmp/ra-multiplex.log</string>
<key>KeepAlive</key>
<true />
<key>UserName</key>
<string>[USERNAME]</string>
</dict>
</plist>