mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 19:53:23 +00:00
fix: return 0 exit code when cd with noarg instead of throwing hook explicitly
This commit is contained in:
parent
95dee1f4dd
commit
792ce996d3
@ -35,7 +35,8 @@ commander.register('cd', function (args)
|
||||
return
|
||||
end
|
||||
fs.cd(os.getenv 'HOME')
|
||||
bait.throw('command.exit', 0)
|
||||
|
||||
return
|
||||
end)
|
||||
|
||||
commander.register('exit', function()
|
||||
|
Loading…
x
Reference in New Issue
Block a user