bash completion for 'triton env TAB'

This commit is contained in:
Trent Mick 2016-04-22 13:09:35 -07:00
parent 0a3c48d2ea
commit 8d8d9ed39f
2 changed files with 6 additions and 4 deletions

View File

@ -67,12 +67,12 @@ do_completion.help = [
'Emit bash completion. See help for installation.', 'Emit bash completion. See help for installation.',
'', '',
'Installation (Mac):', 'Installation (Mac):',
' {{name}} completion > /usr/local/etc/bash_completion.d/{{name}}', ' {{name}} completion > /usr/local/etc/bash_completion.d/{{name}} \\',
' source /usr/local/etc/bash_completion.d/{{name}}', ' && source /usr/local/etc/bash_completion.d/{{name}}',
'', '',
'Installation (Linux):', 'Installation (Linux):',
' sudo {{name}} completion > /etc/bash_completion.d/{{name}} # Linux', ' sudo {{name}} completion > /etc/bash_completion.d/{{name}} \\',
' source /etc/bash_completion.d/{{name}}', ' && source /etc/bash_completion.d/{{name}}',
'', '',
'Alternative installation:', 'Alternative installation:',
' {{name}} completion > ~/.{{name}}.completion # or to whatever path', ' {{name}} completion > ~/.{{name}}.completion # or to whatever path',

View File

@ -227,4 +227,6 @@ do_env.help = [
/* END JSSTYLED */ /* END JSSTYLED */
].join('\n'); ].join('\n');
do_env.completionArgtypes = ['tritonprofile', 'none'];
module.exports = do_env; module.exports = do_env;