mirror of https://github.com/Hilbis/Hilbish
Compare commits
3 Commits
35a8d0eaa4
...
ddf5117fd9
Author | SHA1 | Date |
---|---|---|
sammyette | ddf5117fd9 | |
sammyette | 5b46158008 | |
sammyette | 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…
Reference in New Issue