From 7d68990051af8f0a2289140a3194c1f9a44a579f Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Sat, 22 Aug 2020 16:25:25 +0200 Subject: [PATCH] Put ls into BUFFER instead of printing it Before, syntax-highlighting did not trigger and the fake ls was ugly. --- .config/zsh/plugins/keys.zsh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/zsh/plugins/keys.zsh b/.config/zsh/plugins/keys.zsh index 286cf58..4df0623 100644 --- a/.config/zsh/plugins/keys.zsh +++ b/.config/zsh/plugins/keys.zsh @@ -70,10 +70,8 @@ bindkey . _expandDots function ls-on-enter { if [ -z "$BUFFER" ]; then - echo "ls" - ls - echo "\n" - zle redisplay + BUFFER=ls + zle accept-line else zle accept-line fi