From 9d90a6e6d3e5d7cccdc44c7d69c0a5e2815f275a Mon Sep 17 00:00:00 2001 From: Wai Hon Law Date: Sun, 2 Mar 2025 17:47:17 -0800 Subject: [PATCH] Fix Arch Linux "e" key by not changing inputrc **Problem**: The Arch Linux hasd ~1s delay when typing character `e` in the shell (e.g., bash). **Cause**: In `/etc/inputrc`, the `\e` was changed to `e`. It causes the terminal to think `e` could be an escape sequence. **Fix**: Do not change `/etc/inputrc`. --- archlinux.sh | 9 --------- 1 file changed, 9 deletions(-) mode change 100644 => 100755 archlinux.sh diff --git a/archlinux.sh b/archlinux.sh old mode 100644 new mode 100755 index eb3bc88..7c7f30a --- a/archlinux.sh +++ b/archlinux.sh @@ -128,15 +128,6 @@ extract_image() { } > "$bash_profile_file" || return 1 diff -Naur /dev/null "$bash_profile_file" | debugoutput - # setup inputrc - debug "# setup $inputrc" - local inputrc="$hdd_dir/etc/inputrc" - local inputrc_bak="$inputrc.bak" - cp "$inputrc" "$inputrc.bak" - sed -i 's/"\\\e\[5~": beginning-of-history/#"\e[5~": beginning-of-history\n"\e[5~": history-search-backward/' "$inputrc" |& debugoutput || return 1 - sed -i 's/"\\\e\[6~": end-of-history/#"\e[6~": end-of-history\n"\e[6~": history-search-forward/' "$inputrc" |& debugoutput || return 1 - diff -Naur "$inputrc_bak" "$inputrc" | debugoutput - # setup localtime local localtime_file="$hdd_dir/etc/localtime" debug "# point /etc/localtime to /usr/share/zoneinfo/Europe/Berlin"