From 55ea44a4b01492779f2c7f380a66d25c73b22217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=9C=E8=8F=AF?= Date: Fri, 7 Oct 2022 17:27:18 +0800 Subject: [PATCH] bashrc --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3d5ae17..99675c9 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ sudo cp ./main.sh /usr/bin/todo # 或是创建软链接以便于修改功能 sudo ln ./main.sh /usr/bin/todo +# 或是在没有 root 账户权限用于写入目录时, 也可以修改自己账户的 .bashrc 文件(注意当前文件路径) +echo 'alias todo="sh ~/todo/todo.sh"' >> ~/.bashrc +source ~/.bashrc # 此时已经可用 todo 命令, 默认会显示帮助提示 todo