mirror of https://github.com/Hilbis/Hilbish
fix: return 0 exit code when cd with noarg instead of throwing hook explicitly
parent
95dee1f4dd
commit
792ce996d3
|
@ -35,7 +35,8 @@ commander.register('cd', function (args)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
fs.cd(os.getenv 'HOME')
|
fs.cd(os.getenv 'HOME')
|
||||||
bait.throw('command.exit', 0)
|
|
||||||
|
return
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commander.register('exit', function()
|
commander.register('exit', function()
|
||||||
|
|
Loading…
Reference in New Issue