From 15ba998e43dfc8cdf8acb418064a0757f8bc28b0 Mon Sep 17 00:00:00 2001
From: Tony Blyler <git@tonyblyler.com>
Date: Fri, 24 Jun 2022 20:43:42 -0400
Subject: [PATCH] Fix the delete key in zsh

---
 chezmoi/dot_zshrc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/chezmoi/dot_zshrc b/chezmoi/dot_zshrc
index ea452fc..2bf665b 100644
--- a/chezmoi/dot_zshrc
+++ b/chezmoi/dot_zshrc
@@ -123,6 +123,8 @@ zstyle ':completion:*' menu select
 # case-insensitive,partial-word and then substring completion
 zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
 bindkey '^[[Z' reverse-menu-complete
+# make the delete key work at the prompt
+bindkey '^[[3~' delete-char
 
 export TERM='xterm-256color'
 ZSH_COMPLETIONS_DIR="${HOME}/.zcompletions"