You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Assistantfunction_assist() {
output=$(echo -n "$@"| fabric --pattern shell_command)echo"$output"
vared -p "Do you want to evaluate the command? (y/n) " -c choice
if [[ $choice== y ]];theneval"$output"fi
print -s "$output"# Add the command to history
}
It was working on my old setup (not sure which version of fabric I was using previously), but I installed @latest through go install and it doesn't work anymore. If I run my function I get the response to my prompt telling that the input was not provided. I was debugging the issue and it seems that echo output does not get piped to fabric. If I run this without command substitution ($(...)) it works as expected. I believe there is a bug in how fabric handles pipes within command substitutions.
Version check
Yes I was.
Relevant log output
No response
Relevant screenshots (optional)
No response
The text was updated successfully, but these errors were encountered:
What happened?
I have been using fabric in my zsh function
It was working on my old setup (not sure which version of fabric I was using previously), but I installed @latest through
go install
and it doesn't work anymore. If I run my function I get the response to my prompt telling that the input was not provided. I was debugging the issue and it seems that echo output does not get piped to fabric. If I run this without command substitution ($(...)
) it works as expected. I believe there is a bug in how fabric handles pipes within command substitutions.Version check
Relevant log output
No response
Relevant screenshots (optional)
No response
The text was updated successfully, but these errors were encountered: