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