lib/middleware/completion/index.js
function script(req, res, next) {
  switch (req.get('SHELL')) {
  case '/bin/sh':
  case '/bin/bash':
    res.render(__dirname + '/init.bash');
    break;
  default:
    next(new Error('Unsupported shell: ' + req.get('SHELL')));
  }
}
function script(req, res, next) {
  switch (req.get('SHELL')) {
  case '/bin/sh':
  case '/bin/bash':
    res.render(__dirname + '/init.bash');
    break;
  default:
    next(new Error('Unsupported shell: ' + req.get('SHELL')));
  }
}
function script ( req , res , next ) { switch ( req . get ( 'SHELL' ) ) { case '/bin/sh' : case '/bin/bash' : res . render ( __dirname + '/init.bash' ) ; break ; default : next ( new Error ( 'Unsupported shell: ' + req . get ( 'SHELL' ) ) ) ; } }
Prints the completion init script for the user's shell.
Prints the completion init script for the user s shell .