aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-03-06 21:27:27 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-03-06 21:27:27 -0800
commit5431aa1f4346feea1cb9680945639d8f1b180c9c (patch)
tree0c3e71c8a02f800c3c991eca1b07cfbe7b6864e2
parentc26cfa40f6f9e162195d15b987b3e7e45ce6406b (diff)
downloadcdlog-5431aa1f4346feea1cb9680945639d8f1b180c9c.tar.gz
cdlog-5431aa1f4346feea1cb9680945639d8f1b180c9c.tar.bz2
cdlog-5431aa1f4346feea1cb9680945639d8f1b180c9c.zip
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.
-rw-r--r--cdlog.sh2
1 files changed, 2 insertions, 0 deletions
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