mirror of https://github.com/Hilbis/Hilbish
fix: add home to recent dirs when visited (cd with no args)
parent
2f809e398c
commit
bfc141f655
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue