feat: throw cd hook when chanding directory

pull/21/head^2
TorchedSammy 2021-03-31 01:02:14 -04:00
parent 60a0204958
commit 5500baf5b6
1 changed files with 2 additions and 0 deletions

View File

@ -13,7 +13,9 @@ commander.register('cd', function (path)
print('directory does not exist')
end
end
bait.throw('cd', path)
return
end
fs.cd(os.getenv 'HOME')
bait.throw('cd', path)
end)