mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-21 21:13:22 +00:00
Compare commits
3 Commits
35a8d0eaa4
...
ddf5117fd9
Author | SHA1 | Date | |
---|---|---|---|
ddf5117fd9 | |||
5b46158008 | |||
a41a5504f4 |
@ -19,7 +19,7 @@ commander.register('cd', function (args, sinks)
|
||||
dirs.setOld(hilbish.cwd())
|
||||
dirs.push(path)
|
||||
|
||||
local ok, err = pcall(function() fs.cd(path) end)
|
||||
local ok, err = pcall(function() fs.cd(fs.abs(path)) end)
|
||||
if not ok then
|
||||
sinks.out:writeln(err)
|
||||
return 1
|
||||
|
@ -27,7 +27,7 @@ hilbish.tips = {
|
||||
}
|
||||
|
||||
bait.catch('hilbish.init', function()
|
||||
if hilbish.interactive and hilbish.opts.tip then
|
||||
if hilbish.interactive and hilbish.opts.tips then
|
||||
local idx = math.random(1, #hilbish.tips)
|
||||
print(lunacolors.format(PREAMBLE .. "\nTip: " .. hilbish.tips[idx]))
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user