From 792ce996d332f621939369ce71faf5125bb640af Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 9 Jun 2021 20:30:12 -0400 Subject: [PATCH] fix: return 0 exit code when cd with noarg instead of throwing hook explicitly --- preload.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/preload.lua b/preload.lua index 7ec4aa1..e939543 100644 --- a/preload.lua +++ b/preload.lua @@ -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()