mirror of https://github.com/Hilbis/Hilbish
Compare commits
No commits in common. "ddf5117fd99864f9b2c0a76d84d3220105bad541" and "35a8d0eaa4f59478027201aacbf987fca7e4b7fb" have entirely different histories.
ddf5117fd9
...
35a8d0eaa4
|
@ -19,7 +19,7 @@ commander.register('cd', function (args, sinks)
|
||||||
dirs.setOld(hilbish.cwd())
|
dirs.setOld(hilbish.cwd())
|
||||||
dirs.push(path)
|
dirs.push(path)
|
||||||
|
|
||||||
local ok, err = pcall(function() fs.cd(fs.abs(path)) end)
|
local ok, err = pcall(function() fs.cd(path) end)
|
||||||
if not ok then
|
if not ok then
|
||||||
sinks.out:writeln(err)
|
sinks.out:writeln(err)
|
||||||
return 1
|
return 1
|
||||||
|
|
|
@ -27,7 +27,7 @@ hilbish.tips = {
|
||||||
}
|
}
|
||||||
|
|
||||||
bait.catch('hilbish.init', function()
|
bait.catch('hilbish.init', function()
|
||||||
if hilbish.interactive and hilbish.opts.tips then
|
if hilbish.interactive and hilbish.opts.tip then
|
||||||
local idx = math.random(1, #hilbish.tips)
|
local idx = math.random(1, #hilbish.tips)
|
||||||
print(lunacolors.format(PREAMBLE .. "\nTip: " .. hilbish.tips[idx]))
|
print(lunacolors.format(PREAMBLE .. "\nTip: " .. hilbish.tips[idx]))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue