Re adds cdg functions based on gclone in rust
This commit is contained in:
parent
99790380f8
commit
9744543884
|
@ -59,3 +59,14 @@ if [ $? -eq 0 ]; then
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# change to git directory
|
||||||
|
cdg() {
|
||||||
|
local newdir
|
||||||
|
newdir=$(pgd $1) && cd $newdir
|
||||||
|
}
|
||||||
|
|
||||||
|
_cdg() {
|
||||||
|
_arguments "1: :($( cat $GCLONE_PATH/.cdgcache | rev | cut -d '/' -f 1 | rev))"
|
||||||
|
}
|
||||||
|
|
||||||
|
compdef _cdg cdg
|
||||||
|
|
Loading…
Reference in New Issue