fix: add home to recent dirs when visited (cd with no args)

dev
TorchedSammy 2021-12-07 16:13:05 -04:00
parent 2f809e398c
commit bfc141f655
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ commander.register('cd', function (args)
end end
fs.cd(hilbish.home) fs.cd(hilbish.home)
bait.throw('cd', hilbish.home) bait.throw('cd', hilbish.home)
table.insert(recentDirs, 1, hilbish.home)
recentDirs[11] = nil
end) end)
commander.register('exit', function() commander.register('exit', function()