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

The flag 'history -c' did not work #12362

Closed
summeroch opened this issue Apr 18, 2024 · 1 comment
Closed

The flag 'history -c' did not work #12362

summeroch opened this issue Apr 18, 2024 · 1 comment
Labels
Bug Something isn't working

Comments

@summeroch
Copy link

Describe the bug

When using 'history -c', it prints the history instead of clearing it.

Steps to reproduce

history -c

Expected behavior

clear history

Screenshots and recordings

No response

OS / Linux distribution

Ubuntu 22.04

Zsh version

5.8.1

Oh My Zsh version

master (1ed8d4b)

Terminal emulator

Terminal

If using WSL on Windows, which version of WSL

None

Additional context

No response

@summeroch summeroch added the Bug Something isn't working label Apr 18, 2024
@summeroch
Copy link
Author

summeroch commented Apr 18, 2024

  • zparseopts -E -D c=clear l=list f=stamp E=stamp i=stamp
  • zparseopts -E c=clear l=list f=stamp E=stamp i=stamp

When i remove the -D flag it's worked

cschuyle pushed a commit to cschuyle/ohmyzsh that referenced this issue Apr 18, 2024
bean5 pushed a commit to bean5/ohmyzsh that referenced this issue Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant