nuta / nsh

A command-line shell like fish, but POSIX compatible.
906 stars 34 forks source link

Function color check #39

Open ghost opened 2 years ago

ghost commented 2 years ago

Nsh already checks if aliases exist and highlights them with a green color accordingly. The same thing doesn't work for functions though.

alias l="ls -la"

works, while

l () {
    ls -la
}

doesn't.