style: use camel case for var name

pull/61/head
sammyette 2021-06-10 06:29:35 -04:00
parent edcc1b39f0
commit b3a28b067c
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
local fs = require 'fs'
local commander = require 'commander'
local bait = require 'bait'
local old_dir = hilbish.cwd()
local oldDir = hilbish.cwd()
local shlvl = tonumber(os.getenv 'SHLVL')
if shlvl ~= nil then os.setenv('SHLVL', shlvl + 1) else os.setenv('SHLVL', 1) end
@ -20,10 +20,10 @@ commander.register('cd', function (args)
:gsub('$([%w_]+)', os.getenv):gsub('%z','$'):gsub("%s+", "")
if path == '-' then
path = old_dir
path = oldDir
print(path)
end
old_dir = hilbish.cwd()
oldDir = hilbish.cwd()
local ok, err = pcall(function() fs.cd(path) end)
if not ok then