mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Fix for relative path of js script
This commit is contained in:
parent
9d6312fb9e
commit
484bad775f
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue