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

Add executed command in shell history #909

Open
yodamad opened this issue Aug 13, 2024 · 1 comment
Open

Add executed command in shell history #909

yodamad opened this issue Aug 13, 2024 · 1 comment
Labels
new feature New feature or request

Comments

@yodamad
Copy link

yodamad commented Aug 13, 2024

Is your feature request related to a problem? Please describe.

When running a command from navi, this one is not stored into shell history. This behavior forces us to rerun navi if we want to re-run the command.

Describe the solution you'd like

Often, we need to re-run a command because it fails for instance.
As navi doesn't store it into shell history, we cannot do the classic "up arrow" way to have it and re-run it easily.

It could be nice if commands run from navi can be stored into the history

Utopia

It can be even greater if we can have a flag on the command description to tell if the command has to be stored into the history or not. For instance, for sensitive commands, we may not want them to appear into the history

@yodamad yodamad added the new feature New feature or request label Aug 13, 2024
@yanivmo
Copy link

yanivmo commented Oct 1, 2024

I run navi in zsh on Mac and it pastes the generated command in the command prompt. The command is executed as any other command, after hitting Enter, so it is in the history. I didn't change anything and got it out-of-the-box. Maybe it is a zsh thing?

There is also navi --print that probably could be used to achieve the same effect.

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

No branches or pull requests

2 participants