Fix bug in cdg
This commit is contained in:
parent
9f2c77dc78
commit
9aebedbb56
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue