zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.33k stars 1.85k forks source link

Remove 1 suggestion #734

Closed lacherogwu closed 1 year ago

lacherogwu commented 1 year ago

Hey, by mistake I typed some command, how do I remove it from history?

merziy commented 1 year ago

This is a question for shells, and not this plugin. Your shell history is saved into a file, so if you are using a zsh shell, type this into your terminal. vim ~/.zsh_history Then, find and delete the command from the shell history, which will cause this plugin to 'forget' it.

lacherogwu commented 1 year ago

Great thanks for your answer!