Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to not expand command substitution? #374

Closed
jerryc05 opened this issue Nov 25, 2021 · 2 comments
Closed

Option to not expand command substitution? #374

jerryc05 opened this issue Nov 25, 2021 · 2 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jerryc05
Copy link

Environment

print $VENDOR $OSTYPE $SHELL $ZSH_ARGZERO $ZSH_PATCHLEVEL
print -l $_autocomplete__funcfiletrace
git -C ~zsh-autocomplete log --oneline -n1
ubuntu linux-gnu /usr/bin/zsh /usr/bin/zsh ubuntu/5.8-10
/home/jerryc05/.zinit/bin/zinit.zsh:1612
/home/jerryc05/.zinit/bin/zinit.zsh:1253
/home/jerryc05/.zinit/bin/zinit.zsh:2667

Steps to reproduce

echo `head -n1 /dev/urandom`

Place cursor to the end of the backtick, and then press RIGHT ARROW multiple times, the content between the backticks is evaluated every time I press RIGHT ARROW.

This is not my expected behavior. One use case is when I run eval `ssh-agent` the command ssh-agent gets evaluated multiple times (whenever my cursor moves around the backticks)

@jerryc05 jerryc05 added the bug Something isn't working label Nov 25, 2021
@marlonrichert marlonrichert changed the title Option to not evaluate Shell Parameter Expansion? Option to not expand command substitution? Nov 25, 2021
@marlonrichert marlonrichert self-assigned this Nov 25, 2021
@marlonrichert
Copy link
Owner

That should be easy to fix. In the meantime, as a workaround, add this to your .zshrc file:

zstyle ':completion:*' substitute no

@marlonrichert marlonrichert added the good first issue Good for newcomers label Dec 6, 2021
@marlonrichert
Copy link
Owner

@jerryc05 Fixed.

PS: If you enjoy using my software, please consider sponsoring me. 🙂

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants