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:
@@ -70,10 +70,8 @@ bindkey . _expandDots
|
|||||||
|
|
||||||
function ls-on-enter {
|
function ls-on-enter {
|
||||||
if [ -z "$BUFFER" ]; then
|
if [ -z "$BUFFER" ]; then
|
||||||
echo "ls"
|
BUFFER=ls
|
||||||
ls
|
zle accept-line
|
||||||
echo "\n"
|
|
||||||
zle redisplay
|
|
||||||
else
|
else
|
||||||
zle accept-line
|
zle accept-line
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user