diff --git a/lib/do_completion.js b/lib/do_completion.js index 9655292..546f275 100644 --- a/lib/do_completion.js +++ b/lib/do_completion.js @@ -66,12 +66,16 @@ do_completion.options = [ do_completion.help = [ 'Emit bash completion. See help for installation.', '', - 'Installation:', - ' {{name}} completion > /usr/local/etc/bash_completion.d/{{name}} # Mac', + 'Installation (Mac):', + ' {{name}} completion > /usr/local/etc/bash_completion.d/{{name}}', + ' source /usr/local/etc/bash_completion.d/{{name}}', + '', + 'Installation (Linux):', ' sudo {{name}} completion > /etc/bash_completion.d/{{name}} # Linux', + ' source /etc/bash_completion.d/{{name}}', '', 'Alternative installation:', - ' {{name}} completion > ~/.{{name}}.completion', + ' {{name}} completion > ~/.{{name}}.completion # or to whatever path', ' echo "source ~/.{{name}}.completion" >> ~/.bashrc', '', '{{options}}' diff --git a/lib/do_instance/do_ssh.js b/lib/do_instance/do_ssh.js index 8546c48..bf88b9d 100644 --- a/lib/do_instance/do_ssh.js +++ b/lib/do_instance/do_ssh.js @@ -51,10 +51,10 @@ function do_ssh(subcmd, opts, args, callback) { self.top.log.info({args: args}, 'forking ssh'); var child = spawn('ssh', args); - child.stdout.on('data', function (chunk){ + child.stdout.on('data', function (chunk) { process.stdout.write(chunk); }); - child.stderr.on('data', function (chunk){ + child.stderr.on('data', function (chunk) { process.stderr.write(chunk); }); child.on('close', function (code) {