mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-01 19:23:24 +00:00
feat: throw cd hook when chanding directory
This commit is contained in:
parent
60a0204958
commit
5500baf5b6
@ -13,7 +13,9 @@ commander.register('cd', function (path)
|
|||||||
print('directory does not exist')
|
print('directory does not exist')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
bait.throw('cd', path)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
fs.cd(os.getenv 'HOME')
|
fs.cd(os.getenv 'HOME')
|
||||||
|
bait.throw('cd', path)
|
||||||
end)
|
end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user