bash completion for 'triton env TAB'
This commit is contained in:
parent
0a3c48d2ea
commit
8d8d9ed39f
@ -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',
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user