dev
This commit is contained in:
parent
54df837690
commit
7d097fd9af
18
README.md
18
README.md
@ -1,18 +1,15 @@
|
|||||||
# todo
|
# bash todo !!
|
||||||
bash todo !!
|
以尽量接近自然语言的方式使用命令快速创建 todo
|
||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 快速安装
|
# 快速安装
|
||||||
sudo curl -o /usr/local/bin/todo https://git.satori.love/satori/todo/raw/branch/main/main.sh;sudo chmod +x /usr/local/bin/todo
|
sudo curl -o /usr/local/bin/todo https://git.satori.love/satori/todo/raw/branch/main/main.sh;sudo chmod +x /usr/local/bin/todo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
使用命令快速创建 todo(以尽量接近自然语言的方式)
|
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
Dev
|
||||||
```bash
|
```bash
|
||||||
# 使用 git 将项目克隆到本地
|
# 使用 git 将项目克隆到本地
|
||||||
git clone git@github.com:InvisibleFuture/todo.git
|
git clone git@github.com:InvisibleFuture/todo.git
|
||||||
@ -21,11 +18,8 @@ git clone git@github.com:InvisibleFuture/todo.git
|
|||||||
cd todo
|
cd todo
|
||||||
chmod 777 main.sh
|
chmod 777 main.sh
|
||||||
|
|
||||||
# 可以将文件复制到命令目录, 以便直接使命令 todo
|
# 创建软链接以便于修改功能
|
||||||
sudo cp ./main.sh /usr/bin/todo
|
sudo ln ./main.sh /usr/local/bin/todo
|
||||||
|
|
||||||
# 或是创建软链接以便于修改功能
|
|
||||||
sudo ln ./main.sh /usr/bin/todo
|
|
||||||
|
|
||||||
# 或是在没有 root 账户权限用于写入目录时, 也可以修改自己账户的 .bashrc 文件(注意当前文件路径)
|
# 或是在没有 root 账户权限用于写入目录时, 也可以修改自己账户的 .bashrc 文件(注意当前文件路径)
|
||||||
echo 'alias todo="sh ~/todo/todo.sh"' >> ~/.bashrc
|
echo 'alias todo="sh ~/todo/todo.sh"' >> ~/.bashrc
|
||||||
|
Loading…
Reference in New Issue
Block a user