Having installed VSCode's Local History plugin I found that I was getting ENOENT errors. This command will generate the required directory structure within your projects .history folder.
Please Note: This will remove any existing .history folder from your project.
- Open your
.bash_profileor.zshrcfile - Add
script.shto the bottom of the file - Either restart your terminal, or run
source .bash_profileorsource .zshrc
- Open Terminal and navigate to your working directory
- Run the command
gen-vshistory - Lean back and wait for your
.history/directory to be created