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

Need a general or simple way to. override shell_history #1962

Open
GhostFlying opened this issue Apr 5, 2024 · 0 comments
Open

Need a general or simple way to. override shell_history #1962

GhostFlying opened this issue Apr 5, 2024 · 0 comments
Labels
feature New feature or request triage Issue needs triage

Comments

@GhostFlying
Copy link

What problem are you trying to solve?

I have some frequent used commands or snippers in my shell history and find them by autocompletion. But the devbox shell override the HISFILE env to a dedicated new file so I missed all the history inside the shell and can not find the snippers easily.

I meet a little strange situation that if I put export HISTFILE=~/.zsh_history in the devbox.json's init hook, it seems works as I expected but if I export it inside the interactive shell, it seems not working.

What solution would you like?

Autodetect the HISFILE env, if it is set, inherit it directly into she devbox shell. But maybe needs a way to disable this feature by add an option or another env?

Or just use a special env like DEVBOX_HISFILE directly.

Alternatives you've considered

If the ENV in the configuration file can be expand in the outside env, maybe it can be implemented by a more flexible way but as https://www.jetpack.io/devbox/docs/configuration/#env said it is not supported today.

@GhostFlying GhostFlying added feature New feature or request triage Issue needs triage labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage Issue needs triage
Development

No branches or pull requests

1 participant