diff --git a/justfile b/justfile index a1c9ede..b51f8a7 100644 --- a/justfile +++ b/justfile @@ -17,12 +17,8 @@ machine_ip := `ip -4 addr show scope global | grep -oP '(?<=inet\s)\d+(\.\d+){3} fi # 将所有文件 amend -amend: - cd "{{root}}" && git add . && git commit --amend - -# 将所有文件 commit -commit msg: - cd "{{root}}" && git add . && git commit -m "{{msg}}" +amend argument="": + cd "{{root}}" && git add . && git commit --amend {{argument}} # 统计代码量 cloc: @@ -31,6 +27,8 @@ cloc: # === just 管理命令 === +import? "justfile.local" + bashrc := "$HOME/.bashrc" # 设置 just 的命令补全 @setup-completions: