blob: fcb2229c0357fecb8b0387b73035bc5a62d691f9 [file] [log] [blame] [raw]
local shell = require("shell")
local args = shell.parse(...)
if #args < 1 then
print("Usage: unalias <name>")
return
end
local result = shell.getAlias(args[1])
if not result then
io.write("no such alias")
else
shell.setAlias(args[1], nil)
io.write("alias removed: ", args[1], " -> ", result)
end