Fix bug in cdg
This commit is contained in:
parent
9f2c77dc78
commit
9aebedbb56
|
@ -1,7 +1,7 @@
|
||||||
# gclone aliases
|
# gclone aliases
|
||||||
|
|
||||||
def _gclone_dirs [] {
|
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
|
# cd to a git directory
|
||||||
|
@ -9,7 +9,6 @@ def --env cdg [key: string@_gclone_dirs] {
|
||||||
let dir = glob ($env.GCLONE_PATH + "/**") -d 3
|
let dir = glob ($env.GCLONE_PATH + "/**") -d 3
|
||||||
| where { $in != null and ($in | path basename) == $key }
|
| where { $in != null and ($in | path basename) == $key }
|
||||||
|
|
||||||
|
|
||||||
match ($dir | length) {
|
match ($dir | length) {
|
||||||
0 => {
|
0 => {
|
||||||
print (
|
print (
|
||||||
|
|
Loading…
Reference in New Issue