Fix bug in cdg

This commit is contained in:
Thomas Forgione 2024-03-12 20:03:24 +01:00
parent 9f2c77dc78
commit 9aebedbb56
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# gclone aliases
def _gclone_dirs [] {
glob ($env.GCLONE_PATH + "/**") -d 3 | sort | uniq
glob ($env.GCLONE_PATH + "/**") -d 3 | each { $in | path basename } | sort | uniq
}
# cd to a git directory
@ -9,7 +9,6 @@ def --env cdg [key: string@_gclone_dirs] {
let dir = glob ($env.GCLONE_PATH + "/**") -d 3
| where { $in != null and ($in | path basename) == $key }
match ($dir | length) {
0 => {
print (