Skip to content

elivibe/s8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s8

为任意可执行文件安装开机启动项。

支持 macOS launchd 和 Linux systemd --user

安装

go install github.com/heylingyao/s8@latest

命令

s8 i /path/executable
s8 s /path/executable
s8 r /path/executable
s8 p /path/executable

长命令也支持:install status remove print

支持绝对路径和相对路径:

s8 i /Users/vincent/bin/g2
s8 i ./dist/g2

说明

  • i:安装并启用
  • s:检查是否已安装
  • r:移除启动项
  • p:打印启动项内容

路径

  • macOS:~/Library/LaunchAgents/<label>.plist
  • Linux:~/.config/systemd/user/<label>.service

label 会基于可执行文件名和绝对路径生成,避免同名程序互相覆盖。

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages