From ccf660f3d2a545820d47e54d599cbae0db86d29d Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Fri, 10 Jan 2025 18:10:45 +0100 Subject: id1000: disable tab-completion Tab-completion was too unpredictable for reliable use. Tab-completion in Bash is a feature that enables users to complete commands, file paths, and other arguments by pressing the Tab key. When a user types part of a command or file name and presses Tab, Bash attempts to auto-complete the input based on available options in the current directory or the system's command list. If the input is unique, Bash completes it automatically. If there are multiple possibilities, pressing Tab twice lists all matching options. In practice, the lack of explicit indication of a unique completion led to spamming of the tab key, countering supposed efficiency gains and breaking focus. --- users/id1000.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/users/id1000.scm b/users/id1000.scm index 91725eb..e112fdf 100644 --- a/users/id1000.scm +++ b/users/id1000.scm @@ -5,6 +5,7 @@ ;; home-profile-service-type ;; home-xdg-configuration-files-service-type #:use-module (gnu home services) + #:use-module (gnu home services shells) ;; gparted #:use-module (gnu packages disk) @@ -477,6 +478,13 @@ ;;; +(define bash + (simple-service 'bash-tab-completion + home-bash-service-type + (home-bash-extension + (bashrc (list (plain-file "tab-completion" + "bind 'set disable-completion on'")))))) + (define dkimproxy-out-configuration* (dkimproxy-out-configuration (listen "127.0.0.1:10027") @@ -573,7 +581,8 @@ packages)) (%suweren-home-services* (%suweren-home-services host-name*)) - (user-services (list emacs-software + (user-services (list bash + emacs-software git-configuration git-software profile)) -- cgit v1.2.3