Put ls into BUFFER instead of printing it

Before, syntax-highlighting did not trigger and the fake ls was ugly.
This commit is contained in:
2020-08-22 16:25:25 +02:00
parent ea5ec6b865
commit 7d68990051

View File

@@ -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