docs: function getPaths(path) {
          var appPath = path;
          if (/dev\/temp\.ts$/.test(path)) // hack used when debugging.
              appPath = 'pargv';
          var appName = path_1.basename(appPath); // get the basename from path.
          var completionsDir = path_1.join(env.HOME_PATH, "." + appName);
          if (/\.(ts|js)$/.test(appPath)) {
              appPath = "./" + appPath; // not installed as bin.
              var parsedPath = path_1.parse(appPath);
              completionsDir = parsedPath.dir; // store completions.sh at executable file path.
          }
          var bashPath = !/^win/.test(env.PLATFORM) ? /^darwin/.test(env.PLATFORM) ? '.bash_profile' : '.bashrc' : false;
          if (bashPath)
              bashPath = path_1.join(env.HOME_PATH, bashPath);
          var completionsPath = path_1.join(completionsDir, 'completions.sh');
          return {
              appName: appName,
              appPath: appPath,
              bashPath: bashPath,
              completionsDir: completionsDir,
              completionsPath: completionsPath // the completions path.
          };
      }