xxh / xxh

🚀 Bring your favorite shell wherever you go through the ssh. Xonsh shell, fish, zsh, osquery and so on.
BSD 2-Clause "Simplified" License
5.28k stars 107 forks source link

NVM + other bin commands undetected #144

Open cyrus01337 opened 2 years ago

cyrus01337 commented 2 years ago

Local OS (where xxh is installed): Ubuntu 20.04 Destination host OS: Ubuntu 20.04 xxh version: xxh/0.8.10 xxh-plugins installed: xxh-shell-zsh, xxh-plugin-zsh-ohmyzsh

Steps to Reproduce On the host machine, try to use npm, yarn, nvm or any command that relies on it's bin/ being present in $PATH. zsh will be unable to find the command and output zsh: command not found: foo - when running an installed application as a user with sufficient permissions from the host, it is expected to pick it up.

I'm assuming $PATH is not carried over for security reasons/to prevent jank, there's also the possibility that this may be a zsh issue and am unsure if my mentioning such commands working on the host's zsh nets any favourable insight. Have not tested on other shells.

For community: ⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

anki-code commented 2 years ago

It looks like the special prerun xxh plugin is needed to support these tools.

cyrus01337 commented 2 years ago

Attempting to achieve this and xxh considers my package as an unknown package type when installing from Github and as a local path:

xxh +I https://github.com/cyrus01337/attempt-at-xxh-prerun-plugin-nvm
Unknown package type: https://github.com/cyrus01337/attempt-at-xxh-prerun-plugin-nvm

xxh +I xxh-prerun-plugin-nvm+path+~/Desktop/projects/attempt-at-xxh-prerun-plugin-nvm 
Unknown package type: xxh-prerun-plugin-nvm+path+~/Desktop/projects/attempt-at-xxh-prerun-plugin-nvm

Did check the docs but may have missed something, the project hasn't even lifted off the ground yet. What are the prerequisites necessary in order for xxh to register my repo as a valid package? Here is the repo in question.

anki-code commented 2 years ago

hi @cyrus01337! Just remove attemt-at-. The type of the package determined by xxh-prerun-plugin prefix.