Fix for relative path of js script
This commit is contained in:
parent
9d6312fb9e
commit
484bad775f
@ -1,6 +1,7 @@
|
|||||||
|
script_root=${0:a:h}
|
||||||
|
|
||||||
_mongodbs() {
|
_mongodbs() {
|
||||||
mypath=$(dirname $0)
|
compadd $(mongo --quiet $script_root/load_databases.js)
|
||||||
compadd $(mongo --quiet $mypath/load_databases.js)
|
|
||||||
}
|
}
|
||||||
compdef _mongodbs mongo
|
compdef _mongodbs mongo
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user