Skip to content

Commit a3d4ee1

Browse files
committed
feat(env): load env file from current working directory
- Users can now load the environment file from the current working directory. - The configuration path is dynamically set based on the user's setup. - This change allows for greater flexibility in environment management.
1 parent d343501 commit a3d4ee1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/ruicsh/fn.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ local env_file_loaded = false
117117
vim.fn.env_get = function(key)
118118
-- Load the env file only once
119119
if not env_file_loaded then
120-
vim.fn.load_env_file()
120+
vim.fn.load_env_file(vim.fn.stdpath("config"))
121+
vim.fn.load_env_file(vim.fn.getcwd())
121122
env_file_loaded = true
122123
end
123124

0 commit comments

Comments
 (0)