Appearance
Use os.getenv(name):
os.getenv(name)
-- /Users/whatever/home vim.print(os.getenv("HOME"))
See the Lua docs on system calls