xxh / xxh-shell-zsh

Use zsh wherever you go through the SSH without installation on the host.
BSD 2-Clause "Simplified" License
32 stars 14 forks source link

Support for ARM targets #10

Open jclsn opened 2 years ago

jclsn commented 2 years ago

Is your feature request related to a problem? Please describe. I just tried this out on a Yocto installation on an ARM board. xxh downloaded the x86_64 zsh and tried to run it. Since this is imo one of the biggest use cases, I think xxh should automatically detect this.

Describe the solution you'd like Detect the archtitecture and download the right binary.

❯ xxh root@my-machine
my-machine:/home/root/.xxh/.xxh/shells/xxh-shell-zsh not found. Install xxh-shell-zsh? [Y/n] Y
Install xxh-shell-zsh to my-machine:/home/root/.xxh
First time upload using rsync (this will be omitted on the next connections)
First run xxh-shell-zsh on my-machine
Something went wrong while running zsh on host:
./zsh.sh: line 28: /home/root/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh-bin/bin/zsh: cannot execute binary file: Exec format error
/home/root/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh.sh: line 28: /home/root/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh-bin/bin/zsh: cannot execute binary file: Exec format error
anki-code commented 2 years ago

Hi! You can fork this repo and replace the zsh-bin binary to the arm version from https://github.com/romkatv/zsh-bin/releases