autojump
autojump copied to clipboard
{/usr/bin/ => }env to work with termux
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
in case anybody else lands here first proot and termux-chroot fixed this for me
reopening for further discussion, the termux-chroot
path has some legitimate barriers including
- slow to have at the start of a
~/.zshrc
or similar file so things work automatically in your shell - requires root
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"
@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