From 830310d8e5f80f7734425633264e218f4fafab55 Mon Sep 17 00:00:00 2001 From: AhFei Date: Sat, 10 Jan 2026 17:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20justfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- justfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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: