mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-01 19:23:24 +00:00
fix: add home to recent dirs when visited (cd with no args)
This commit is contained in:
parent
2f809e398c
commit
bfc141f655
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user