From b3a28b067c2972f61bce669e917762f9c24774f5 Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Thu, 10 Jun 2021 06:29:35 -0400 Subject: [PATCH] style: use camel case for var name --- preload.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/preload.lua b/preload.lua index e939543..143816c 100644 --- a/preload.lua +++ b/preload.lua @@ -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