 
   # eval "$(./app.js init)"
   init: () ->
+    cacheFile = path.join(config.getDataDir(), "bash_completions")
     console.log """
     function _qdwrap() {
       local cmd newPath


cmds.extend defaultCommands


# check for private commands first (start with underscore)
if process.argv.length == 3

      cur="${COMP_WORDS[COMP_CWORD]}"
      prev="${COMP_WORDS[COMP_CWORD-1]}"

      if [[ -s "#{cacheFile}" ]]; then
        opts=$(cat "#{cacheFile}")
      else
        opts=$(${job} _bash_complete)
      fi
      COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
      return 0
    }
