kubie icon indicating copy to clipboard operation
kubie copied to clipboard

Bug: no zsh_history in sub shell

Open codejnki opened this issue 2 years ago • 7 comments

When I start a new kubie ctx session it has no history. This appears to be similar to #31.

Looking a PR #32 and comparing it to the current state of https://github.com/EItanya/kubie/blob/master/src/shell/zsh.rs it appears that the fix may no longer be in the current release.

Can the commit from #32 get merged into master and a new release cut?

codejnki avatar Feb 25 '22 14:02 codejnki

yes please! I really need this. I've found myself not wanting to be in a kubie shell because my history doesn't get saved. :(

ghostsquad avatar Mar 25 '22 17:03 ghostsquad

It would be really helpful to have this in again!

simonst avatar Apr 14 '22 07:04 simonst

I had the same issue and it turns out history is indeed copied over to the sub-shells if the .zsh_history is correctly populated - https://github.com/sbstp/kubie/blob/master/src/shell/zsh.rs#L40-L43

It turns out you can set the location of the history file by setting the HISTFILE var (https://ryantoddgarza.com/a-better-zsh-history-pt1) Somehow this was configured incorrectly in my shell and overriding that to ~/.zsh_history did the trick for me. Not sure if it's the same issue for others in this thread though.

rvignesh89 avatar May 16 '22 14:05 rvignesh89

thanks @rvignesh89 . I set up the HISTFILE and it works!

However, I still think #32 should be merged into the release for those who want to run without this configuration.

megumish avatar May 25 '22 07:05 megumish

I was able to pull master and build it locally and now history is present. So that could be an option for some people.

I do think we could benefit from a fresh release being cut and pushed out to the package managers.

codejnki avatar May 26 '22 12:05 codejnki

I'll create a new release

sbstp avatar May 27 '22 03:05 sbstp

This was driving me nuts until I found that it was kubie causing to lose history

CharlesB2 avatar Jun 06 '23 18:06 CharlesB2