Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: atuin init osh #2473

Open
nisbet-hubbard opened this issue Dec 6, 2024 · 2 comments
Open

[Feature Request]: atuin init osh #2473

nisbet-hubbard opened this issue Dec 6, 2024 · 2 comments

Comments

@nisbet-hubbard
Copy link

Could we have a generic atuin init posix like zoxide does?

My specific use case is oils-for-unix/oils, but I imagine it should also make atuin scale easily across more shells.

@ellie
Copy link
Member

ellie commented Dec 6, 2024

I think that's probably unlikely - there isn't a good POSIX way to have precmd and preexec afaik. For instance the difference between our bash and zsh scripts is pretty huge, entirely because bash doesn't support these hooks

@nisbet-hubbard nisbet-hubbard changed the title [Feature Request]: generic atuin init posix [Feature Request]: atuin init osh Dec 6, 2024
@nisbet-hubbard
Copy link
Author

Gotcha! I've edited the title to make this an OSH integration request instead.

It's probably low priority, but I know OSH aims to run any Bash script as is. So if you ever get round to it and can tell me what hooks block an adaptation of atuin init bash for use by OSH, that'll be a bug they'd be happy to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants