Skip to content
Snippets Groups Projects
Commit f58d64ad authored by michael.minelli's avatar michael.minelli
Browse files

AutoCompletionHelper => Add message for restart shell session

parent aea45f83
No related branches found
No related tags found
No related merge requests found
...@@ -207,11 +207,11 @@ export function updateRcFile(shellType: 'bash' | 'zsh', filePath: string, comple ...@@ -207,11 +207,11 @@ export function updateRcFile(shellType: 'bash' | 'zsh', filePath: string, comple
return; return;
} }
spinner.succeed(updated ? `${ shellType } updated.` : `${ shellType } already up to date.`); spinner.succeed(updated ? `${ shellType } updated. Please restart your shell session.` : `${ shellType } already up to date.`);
} else { } else {
try { try {
fs.writeFileSync(filePath, completionCommand); fs.writeFileSync(filePath, completionCommand);
spinner.succeed(`${ shellType } written.`); spinner.succeed(`${ shellType } written. Please restart your shell session.`);
} catch ( error ) { } catch ( error ) {
spinner.fail(`Error writing in ${ filePath }`); spinner.fail(`Error writing in ${ filePath }`);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment