-
Notifications
You must be signed in to change notification settings - Fork 36
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
[BUG]: ghcs
accidentally deleted shell history
#99
Comments
Oof, that's interesting. Sorry about that. Can I check that you've got
Also, can I check which shell alias you are actually using via:
Please just copy the contents in. I suspect what's happening here is that you are using the |
No worries, I had a very recent backup :) And yes, my
and this the output for the
|
@WhoSayIn thanks for that. This looks like the Obviously we shouldn't be deleting your shell history either way, I'm just trying to put the pieces together here. I have a working theory about the |
Hi @williammartin, No, I didn't copy paste it from somewhere else :) initially I installed github cli by Although while I'm typing this comment, I realized I made a mistake and while I was setting up the aliases, I used the So this was in my aliases;
I suspect this might be the reason. |
I can confirm it was that. I was able to reproduce it. When using;
in my When using;
It works as expected. So you can decide to close this issue but maybe some safeguard can be implemented for people like me :) |
Thanks!
Can you check what the output of By the way if you updated
I definitely think we should figure out something here, seems very risky! |
Hi @williammartin ,
Just updated
|
Yeh I'm just wondering if you did
It looks like you are still using the |
Hi @williammartin , here's the output I get;
So I do have some |
@BagToad was this fixed? I believe this can be closed. |
@williammartin Yes, this is fixed but it hasn't been released yet. I'm happy to close this though - do you agree? |
What happened?
Tried to use the alias
ghcs
on MacOS Sonoma 14.5 with zsh. After executing a simple command that was suggested, all my command line history got deleted. (suggested code had nothing to do with deleting the history. It was the first time ever I use this.)Versions
gh v2.57.0, gh-copilot1.0.5 (2024-09-12)
Relevant terminal output
The text was updated successfully, but these errors were encountered: