diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lua_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua_api.c b/src/lua_api.c index 7bac763..4dc2149 100644 --- a/src/lua_api.c +++ b/src/lua_api.c @@ -166,6 +166,8 @@ void lua_register_api(lua_State *L) { lua_setfield(L, -2, "getcwd"); lua_pushcfunction(L, l_debug); lua_setfield(L, -2, "debug"); + lua_pushcfunction(L, l_cd); + lua_setfield(L, -2, "cd"); // set the table as global lua_setglobal(L, "lush"); } |
