Skip to content

Instantly share code, notes, and snippets.

View sko00o's full-sized avatar
☮️
Peaceful.

Wenyu.Li sko00o

☮️
Peaceful.
View GitHub Profile
@sko00o
sko00o / clash-start
Last active January 3, 2024 14:12 — forked from akillcool/clash.service
clash auto start and update subcribe configuration
#!/bin/bash
# save this file to /usr/local/bin/clash-start
# save pid file
echo $$ > ${HOME}/.config/clash/clash.pid
CLASH_URL="your subscribe address" # NEED EDIT!
CLASH_REMOTE_CFG="${HOME}/.config/clash/config-remote.yaml"
CLASH_LOCAL_CFG="${HOME}/.config/clash/config-local.yaml"
CLASH_TMP_CFG="/tmp/clash-config.yaml"