pkgxdev / pkgx

the last thing you’ll install

Home Page:https://pkgx.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZSH integration fails with error "parse error near `()`"

NachoVazquez opened this issue · comments

The Problem

After running

eval "$(pkgx integrate)"

I get

/Users/nachovazquez/.zshrc << `source <(pkgx --shellcode)`
hook already integrated: ~/.bashrc
zsh: defining function based on alias `x'
zsh: parse error near `()'

Acceptance Criteria

ZSH should integrate correctly or provide an error message with a potential problem diagnosis.

oh ok, you already have an alias x I'm guessing?

I'll make it so the shellcode only defines x if it's not already taken.

Thank you @mxcl !

I'll push out 1.1.1 today

I'll push out 1.1.1 today

Fantastic!

Keeping this open as the shellcode should handle the “no x” scenario with a couple of minor changes, however the ref’d PR is sufficient to fix this issue.

Sorry for the delay, our build infra is choking since Saturday trying to push out 1.1.1.

Thanks for the update. I'm looking forward to trying pkgxat to its fullest.

Forgot to close this.