Merge pull request #81 from cleong14/patch-1
fix(lazygit.lua): escape 'space' in filepath
This commit is contained in:
@@ -53,7 +53,7 @@ local function lazygitdefaultconfigpath()
|
|||||||
-- check before replacing the following line
|
-- check before replacing the following line
|
||||||
local os = fn.substitute(fn.system('uname'), '\n', '', '')
|
local os = fn.substitute(fn.system('uname'), '\n', '', '')
|
||||||
if os == 'Darwin' then
|
if os == 'Darwin' then
|
||||||
return '~/Library/Application Support/jesseduffield/lazygit/config.yml'
|
return '~/Library/Application\\ Support/jesseduffield/lazygit/config.yml'
|
||||||
else
|
else
|
||||||
if string.find(os_name, 'Window') then
|
if string.find(os_name, 'Window') then
|
||||||
return '%APPDATA%/lazygit/config.yml'
|
return '%APPDATA%/lazygit/config.yml'
|
||||||
|
|||||||
Reference in New Issue
Block a user