Skip to content

Commit

Permalink
chore: remove unnecessary eval (#871)
Browse files Browse the repository at this point in the history
* chore: add escape to eval

* fix: remove eval
  • Loading branch information
Tolsee authored Jan 14, 2025
1 parent d462c1e commit 86848b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/autocomplete/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ Setup Instructions for ${this.config.bin.toUpperCase()} CLI Autocomplete ---
instructions += `
1) Run this command in your terminal window:
${cyan(`printf "eval $(${scriptCommand})" >> ~/.bashrc; source ~/.bashrc`)}
${cyan(`printf "$(${scriptCommand})" >> ~/.bashrc; source ~/.bashrc`)}
The previous command adds the ${cyan(setupEnvVar)} environment variable to your Bash config file and then sources the file.
${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:
${cyan(`printf "eval $(${scriptCommand}) >> ~/.bash_profile; source ~/.bash_profile`)}
${cyan(`printf "$(${scriptCommand}) >> ~/.bash_profile; source ~/.bash_profile`)}
Or:
${cyan(`printf "eval $(${scriptCommand})" >> ~/.profile; source ~/.profile`)}
${cyan(`printf "$(${scriptCommand})" >> ~/.profile; source ~/.profile`)}
2) Start using autocomplete:
Expand All @@ -86,7 +86,7 @@ Setup Instructions for ${this.config.bin.toUpperCase()} CLI Autocomplete ---
instructions += `
1) Run this command in your terminal window:
${cyan(`printf "eval $(${scriptCommand})" >> ~/.zshrc; source ~/.zshrc`)}
${cyan(`printf "$(${scriptCommand})" >> ~/.zshrc; source ~/.zshrc`)}
The previous command adds the ${cyan(setupEnvVar)} environment variable to your zsh config file and then sources the file.
Expand Down

0 comments on commit 86848b3

Please sign in to comment.