From 5431aa1f4346feea1cb9680945639d8f1b180c9c Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 6 Mar 2024 21:27:27 -0800 Subject: completion: set nospace option. * cdlog.sh (cdlog.complete): Set compopt -o nospace so that the completion doesn't automatically add a space. That's what we want when completing directories for cd. It's annoying to have to backspace over a space to continue completion. --- cdlog.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cdlog.sh b/cdlog.sh index 0a9b032..69b348b 100644 --- a/cdlog.sh +++ b/cdlog.sh @@ -342,6 +342,8 @@ cdlog.complete() local alias local dir + compopt -o nospace + COMPREPLY+=( $(compgen -d -- "$cur") ) for alias in "${!cdlog_alias[@]}"; do -- cgit v1.2.3