diff options
| author | 2025-08-19 15:09:00 -0400 | |
|---|---|---|
| committer | 2025-08-19 15:09:00 -0400 | |
| commit | 6ef7c83e19eae145e40f5d8cc9da82484546052a (patch) | |
| tree | 77540bbe027c13a620128cb358cfb411ed956fa6 | |
| parent | v0.4.0 (diff) | |
update install script paths
| -rwxr-xr-x | install.sh | 6 | ||||
| -rw-r--r-- | lush/init.lua (renamed from .lush/init.lua) | 0 | ||||
| -rw-r--r-- | lush/scripts/example.lua (renamed from .lush/scripts/example.lua) | 0 | ||||
| -rw-r--r-- | src/lua_api.c | 4 |
4 files changed, 5 insertions, 5 deletions
@@ -54,12 +54,12 @@ rm premake.tar.gz premake5 gmake make -if [ ! -d ~/.lush ]; then - cp -rf ./.lush ~/ +if [ ! -d ~/.config/lush ]; then + cp -rf ./lush ~/.config/ fi # always update example -cp -f ./.lush/scripts/example.lua ~/.lush/scripts/example.lua +cp -f ./lush/scripts/example.lua ~/config/lush/scripts/example.lua # Install the new shell binary to a temporary location sudo cp ./bin/Debug/lush/lush /usr/bin/lush.new diff --git a/.lush/init.lua b/lush/init.lua index 337c2da..337c2da 100644 --- a/.lush/init.lua +++ b/lush/init.lua diff --git a/.lush/scripts/example.lua b/lush/scripts/example.lua index e7cd210..e7cd210 100644 --- a/.lush/scripts/example.lua +++ b/lush/scripts/example.lua diff --git a/src/lua_api.c b/src/lua_api.c index 0e20752..25f2f94 100644 --- a/src/lua_api.c +++ b/src/lua_api.c @@ -44,8 +44,8 @@ int lua_load_script(lua_State *L, const char *script, char **args) { } else { const char *home_dir = getenv("HOME"); if (home_dir != NULL) { - snprintf(script_path, sizeof(script_path), "%s/.lush/scripts/%s", - home_dir, script); + snprintf(script_path, sizeof(script_path), + "%s/.config/lush/scripts/%s", home_dir, script); if (access(script_path, F_OK) != 0) { // script not in either location |
