Fix for relative path of js script

This commit is contained in:
Fabio 'c0m3tx' Vitale 2017-03-07 17:27:51 +01:00
parent 9d6312fb9e
commit 484bad775f

View File

@ -1,6 +1,7 @@
script_root=${0:a:h}
_mongodbs() {
mypath=$(dirname $0)
compadd $(mongo --quiet $mypath/load_databases.js)
compadd $(mongo --quiet $script_root/load_databases.js)
}
compdef _mongodbs mongo