Any hope to get support for ksh?

ksh (kornshell) remains a standard on all UNIX platforms, but can of course also be used on Linux.

Is there any hope that what remains a widely-used version of the shell will one day soon be supported by atuin?

It would be a clever way of giving a seductive new look to an old tool that’s still performing well :wink:

Hey! I think ksh support is unlikely I’m afraid

Atuin relies on precmd/preexec hooks. For ZSH, you can read more about them here: mastering-zsh/docs/config/hooks.md at master · rothgar/mastering-zsh · GitHub

As well as zsh, fish, nushell, and xonsh all support hooks natively. Bash does not, but there’s a project to basically “hack” them in here: GitHub - rcaloras/bash-preexec: ⚡ preexec and precmd functions for Bash just like Zsh..

There’s also ble.sh: GitHub - akinomyoga/ble.sh: Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.

Our bash support, even with those projects, is not as good as the other shells. There’s issues opened pretty much every week, and there’s only so much we can do without native hook support.

Unless ksh supports hooks (I don’t think it does), then it’s not really something we can support. It’s probably possible to get 60% of the way there with traps/etc, but it will never be that reliable.

Yes, I can understand that.

ksh history is full organized around user’s history file, so directly shared between user’s sessions, without any memory cache mecanism, so very basic (and old) design.

Sadly for us, even on linux servers we use ksh as bash replacement, to be able to act in the same way on our Linux and UNIX servers.

No atuin for us, so… ok.

Thanks for your response.

1 Like