From bfc141f655bb03fc8f2736c299180314bdae9412 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Tue, 7 Dec 2021 16:13:05 -0400 Subject: [PATCH] fix: add home to recent dirs when visited (cd with no args) --- preload.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/preload.lua b/preload.lua index 095b29c..7029dee 100644 --- a/preload.lua +++ b/preload.lua @@ -37,6 +37,9 @@ commander.register('cd', function (args) end fs.cd(hilbish.home) bait.throw('cd', hilbish.home) + + table.insert(recentDirs, 1, hilbish.home) + recentDirs[11] = nil end) commander.register('exit', function()