aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh6
-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.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 405cf6e..2251fed 100755
--- a/install.sh
+++ b/install.sh
@@ -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