[ruby] Implement clear and actually use builtin pwd instead of /bin/pwd

This commit is contained in:
Sami Samhuri 2022-01-21 17:43:04 -08:00
parent 5bb03eb2a2
commit 58f1e48cd2
No known key found for this signature in database
GPG key ID: 4B4195422742FC16

View file

@ -66,9 +66,14 @@ module Shell
0
end
def bulitin_pwd(_args)
def builtin_pwd(_args)
puts Dir.pwd
0
end
def builtin_clear(_args)
print "\033[2J"
0
end
end
end