From 367b3ca5bb0798dcda57560806322fb3e33c3cbf Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 4 Jun 2024 20:53:47 +0200 Subject: [PATCH] Add better-completion setting --- settings.d/better-completion.sh | 6 ++++++ startup.sh | 1 + 2 files changed, 7 insertions(+) create mode 100644 settings.d/better-completion.sh diff --git a/settings.d/better-completion.sh b/settings.d/better-completion.sh new file mode 100644 index 0000000..8ca6f3b --- /dev/null +++ b/settings.d/better-completion.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +if [ "${CONFIG_BETTER_COMPLETION}" == "1" ]; then + bind 'set show-all-if-ambiguous on' + bind 'TAB:menu-complete' +fi diff --git a/startup.sh b/startup.sh index 85edf82..c333b63 100755 --- a/startup.sh +++ b/startup.sh @@ -42,6 +42,7 @@ if [ ! -f "config.sh" ]; then # Example configuration CONFIG_AUTOSAVE_HISTORY=1 +CONFIG_BETTER_COMPLETION=1 CONFIG_CUSTOM_PROMPT=1 CONFIG_EDITOR=nano CONFIG_FLOW_CONTROL=0