adopt kitty
[distro-setup] / brc
diff --git a/brc b/brc
index d0c0f8d655be4f9e68fceff05538cae58940b960..00f217210737514dc4f401738997cf6c1992d572 100644 (file)
--- a/brc
+++ b/brc
@@ -204,6 +204,15 @@ if [[ $- == *i* ]]; then
 
 fi
 
+case $TERM in
+  # fixup broken backspace in chroots
+  xterm-kitty|alacritty)
+    chroot() {
+      TERM=xterm-256color command chroot "$@"
+    }
+    ;;
+esac
+
 export BC_LINE_LENGTH=0
 
 # ansible option