autojump icon indicating copy to clipboard operation
autojump copied to clipboard

{/usr/bin/ => }env to work with termux

Open emanresusername opened this issue 7 years ago • 4 comments

was setting up termux with autojump and it apparently doesn't use the standard /usr/bin/env so that was breaking things. this got it working for me, not sure if there are larger implications of this change though o.O

P.S. not totally sure how it resolves it's packages, but if it's easy to get this in a repo somewhere on the interwebz where one could apt install autojump from termux, that'd be awesome

emanresusername avatar Apr 03 '17 10:04 emanresusername

in case anybody else lands here first proot and termux-chroot fixed this for me

emanresusername avatar Apr 03 '17 11:04 emanresusername

reopening for further discussion, the termux-chroot path has some legitimate barriers including

  1. slow to have at the start of a ~/.zshrc or similar file so things work automatically in your shell
  2. requires root

emanresusername avatar Apr 03 '17 12:04 emanresusername

workaround with zplug using termux-fix-shebang for anybody else who ended up in this situation

zplug "wting/autojump", \
      use:"bin/autojump", \
      as:command, \
      hook-build:"termux-fix-shebang bin/*"

zplug "wting/autojump", \
      use:"bin/autojump.zsh"

emanresusername avatar Aug 13 '17 04:08 emanresusername

@JohnAZoidberg If it's implemented in a compiled language like Go, we don't have to worry about the shebang lines. So I rewrote it in Go: https://github.com/suzaku/shonenjump

suzaku avatar Nov 26 '20 13:11 suzaku