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.',
'',
'Installation (Mac):',
' {{name}} completion > /usr/local/etc/bash_completion.d/{{name}}',
' source /usr/local/etc/bash_completion.d/{{name}}',
' {{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}}',
' sudo {{name}} completion > /etc/bash_completion.d/{{name}} \\',
' && source /etc/bash_completion.d/{{name}}',
'',
'Alternative installation:',
' {{name}} completion > ~/.{{name}}.completion # or to whatever path',

View File

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