ddworken / hishtory

Your shell history: synced, queryable, and in context
https://hishtory.dev
MIT License
2.49k stars 47 forks source link

Feature Request Snap/Flat/AppImage (pick one of them as you like) #64

Open matbgn opened 1 year ago

matbgn commented 1 year ago

Would be nice if you could deploy hishtory on one of this platform, so that corresponding manager could easily install it.

For bauh (https://github.com/vinifmor/bauh) it will be particularly appreciable.

jankatins commented 1 year ago

Just FYI: I use zinit (zsh plugin manager, but also useable as a github release downloader) and this is my line(s) for it:

# Your shell history: synced, queryable, and in context
# use the wait'0b' time slot to load it after the other plugins which try to grab ^R and which get loaded with '0a'
zinit mv'hishtory* -> hishtory' lbin'!hishtory* -> hishtory' \
  atclone"./hishtory completion zsh > _hishtory" \
  atpull"%atclone" \
  dl'https://raw.githubusercontent.com/ddworken/hishtory/master/client/lib/config.zsh -> zhook.zsh' \
  src="zhook.zsh" wait'0b' lucid bindmap'^R -> ^G' for \
  @ddworken/hishtory

(I use mcfly as my main ctrl+r widget, thats why this one is moved to ctrl+g)

matbgn commented 1 year ago

Nice trick! It smells a bit hacky to me, specifically for maintenance and generalization aspects.

In fact, I do much more prefer a solution like bauh. Moreover the goal of this issue is to facilitate spreading for new users in a kind-of one click way.

ddworken commented 1 year ago

Thanks for the suggestion! Personally, I'm a fan of the current install method since it allows hishtory to mange updates itself. So I'm somewhat unlikely to prioritize this in the short term, but if anyone wants to work on this I'd be happy to accept contributions!