lua rewrite
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
local function get_current_shell()
|
||||
local shell = os.getenv("SHELL") or "unknown"
|
||||
return shell:match("([^/]*)$")
|
||||
end
|
||||
|
||||
return { name = "shell", cmd = get_current_shell }
|
||||
Reference in New Issue
Block a user