We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4c2489 commit 2ef093bCopy full SHA for 2ef093b
aliases/git/git-aliases.nu
@@ -180,7 +180,7 @@ export def grset [remote: string, url: string] {
180
}
181
export alias grss = git restore --source
182
export alias grst = git restore --staged
183
-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 { '.' })
184
export alias gru = git reset --
185
export alias grup = git remote update
186
export alias grv = git remote --verbose
0 commit comments