From 17cc06984eed826f293c1ca04d7b0e6675dd6367 Mon Sep 17 00:00:00 2001 From: CAESIUS-TIM <60285058+CAESIUS-TIM@users.noreply.github.com> Date: Mon, 8 Dec 2025 01:05:54 +0800 Subject: [PATCH] fix(git-aliases): grt Nushell has updated its syntax: ```nu grt # => fatal: ambiguous argument 'or': unknown revision or path not in the working tree. # => Use '--' to separate paths from revisions, like this: # => 'git [...] -- [...]' ``` --- aliases/git/git-aliases.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aliases/git/git-aliases.nu b/aliases/git/git-aliases.nu index caec4e79..20d8fbeb 100644 --- a/aliases/git/git-aliases.nu +++ b/aliases/git/git-aliases.nu @@ -180,7 +180,7 @@ export def grset [remote: string, url: string] { } export alias grss = git restore --source export alias grst = git restore --staged -export alias grt = cd (git rev-parse --show-toplevel or echo .) +export alias grt = cd (git rev-parse --show-toplevel | complete | if $in.exit_code == 0 { $in.stdout | str trim } else { '.' }) export alias gru = git reset -- export alias grup = git remote update export alias grv = git remote --verbose