Skip to content

Commit

Permalink
chore: remove dollar sign
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Jan 31, 2024
1 parent 9567ccd commit 8abed73
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/commands/autocomplete/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,44 +60,44 @@ Setup Instructions for ${this.config.bin.toUpperCase()} CLI Autocomplete ---
switch (shell) {
case 'bash': {
instructions += `
1) Run this command (starting with "printf") in your terminal window:
1) Run this command in your terminal window:
${chalk.cyan(`$ printf "eval $(${scriptCommand})" >> ~/.bashrc; source ~/.bashrc`)}
${chalk.cyan(`printf "eval $(${scriptCommand})" >> ~/.bashrc; source ~/.bashrc`)}
The previous command adds the ${chalk.cyan(setupEnvVar)} environment variable to your Bash config file and then sources the file.
${chalk.bold('NOTE')}: If you’ve configured your terminal to start as a login shell, you may need to modify the command so it updates either the ~/.bash_profile or ~/.profile file. For example:
${chalk.cyan(`$ printf "eval $(${scriptCommand}) >> ~/.bash_profile; source ~/.bash_profile`)}
${chalk.cyan(`printf "eval $(${scriptCommand}) >> ~/.bash_profile; source ~/.bash_profile`)}
Or:
${chalk.cyan(`$ printf "eval $(${scriptCommand})" >> ~/.profile; source ~/.profile`)}
${chalk.cyan(`printf "eval $(${scriptCommand})" >> ~/.profile; source ~/.profile`)}
2) Start using autocomplete:
${chalk.cyan(`$ sf ${tabStr}`)} # Command completion
${chalk.cyan(`$ sf command --${tabStr}`)} # Flag completion
${chalk.cyan(`sf ${tabStr}`)} # Command completion
${chalk.cyan(`sf command --${tabStr}`)} # Flag completion
`
break
}

case 'zsh': {
instructions += `
1) Run this command (starting with "printf") in your terminal window:
1) Run this command in your terminal window:
${chalk.cyan(`$ printf "eval $(${scriptCommand})" >> ~/.zshrc; source ~/.zshrc`)}
${chalk.cyan(`printf "eval $(${scriptCommand})" >> ~/.zshrc; source ~/.zshrc`)}
The previous command adds the ${chalk.cyan(setupEnvVar)} environment variable to your zsh config file and then sources the file.
2) (Optional) Run this command to ensure that you have no permissions conflicts:
${chalk.cyan('$ compaudit -D')}
${chalk.cyan('compaudit -D')}
3) Start using autocomplete:
${chalk.cyan(`$ sf ${tabStr}`)} # Command completion
${chalk.cyan(`$ sf command --${tabStr}`)} # Flag completion
${chalk.cyan(`sf ${tabStr}`)} # Command completion
${chalk.cyan(`sf command --${tabStr}`)} # Flag completion
`
break
}
Expand All @@ -115,8 +115,8 @@ Setup Instructions for ${this.config.bin.toUpperCase()} CLI Autocomplete ---
3) Start using autocomplete:
${chalk.cyan(`$ sf ${tabStr}`)} # Command completion
${chalk.cyan(`$ sf command --${tabStr}`)} # Flag completion
${chalk.cyan(`sf ${tabStr}`)} # Command completion
${chalk.cyan(`sf command --${tabStr}`)} # Flag completion
`
break
}
Expand Down

0 comments on commit 8abed73

Please sign in to comment.