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 {
|
||||
if [ -z "$BUFFER" ]; then
|
||||
echo "ls"
|
||||
ls
|
||||
echo "\n"
|
||||
zle redisplay
|
||||
BUFFER=ls
|
||||
zle accept-line
|
||||
else
|
||||
zle accept-line
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user