_ _ ____ _ _ ____ ___ ____
|_/ |___ |\ | | | | |___
| \_ |___ | \| |__| | |___
Bash脚本工具 v.1.0Github
curl -Lso- https://raw.githubusercontent.com/kenote/bash/main/base.sh | bash -s -- --mirror https://raw.githubusercontent.com/kenote/bash/main; \
if (echo $SHELL | grep -q "zsh");then source ~/.zshrc; else source ~/.bashrc; fiGitee
curl -Lso- https://gitee.com/kenote/bash/raw/main/base.sh | bash -s -- --mirror https://gitee.com/kenote/bash/raw/main; \
if (echo $SHELL | grep -q "zsh");then source ~/.zshrc; else source ~/.bashrc; fi安装脚本
curl -Lso- $KENOTE_BASH_MIRROR/base.sh | bash -s -- --init运行
~/kenote/start.sh设置热键
curl -Lso- $KENOTE_BASH_MIRROR/base.sh | bash -s -- --hotkey "kn"; \
if (echo $SHELL | grep -q "zsh");then source ~/.zshrc; else source ~/.bashrc; fi拉取 Github; 默认 /mnt/mirrors, 也可以通过 --install /home/mirrors 指定
curl -Lso- https://raw.githubusercontent.com/kenote/bash/main/kenote.sh | bash -s -- --installNginx 设置
location /kenote {
alias /mnt/mirrors/kenote;
index index.html index.htm;
autoindex on;
charset utf-8;
types {
text/plain txt md sh conf repo json yml yaml tpl njk mjml php;
}
}
location /packages {
alias /mnt/mirrors/packages;
index index.html index.htm;
autoindex on;
charset utf-8;
types {
text/plain txt md sh conf repo json yml yaml tpl njk mjml php;
}
}添加计划任务
/mnt/mirrors/kenote.sh --cron设定计划任务更新点
/mnt/mirrors/kenote.sh --cron "30 2 * * *"手动更新
/mnt/mirrors/kenote.sh --update