From 893626403f9cc1111cc71e578882fc6c75959d50 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Tue, 3 Sep 2024 22:33:15 -0400 Subject: updated the example.lua to use new cd command --- .lush/scripts/example.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.lush/scripts/example.lua') diff --git a/.lush/scripts/example.lua b/.lush/scripts/example.lua index b2f2f2b..8da0435 100644 --- a/.lush/scripts/example.lua +++ b/.lush/scripts/example.lua @@ -41,6 +41,6 @@ print(cwd) -- exec also supports piping -- this comment will get grepped since it says hello -lush.exec("cd " .. os.getenv("HOME") .. "/.lush/scripts") +lush.cd("~/.lush/scripts") lush.exec('cat "example.lua" | grep "hello" | sort | uniq') -lush.exec("cd " .. cwd) +lush.cd(cwd) -- cgit v1.2.3-59-g8ed1b