aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar BanceDev 2024-09-03 22:33:15 -0400
committerGravatar BanceDev 2024-09-03 22:33:15 -0400
commit893626403f9cc1111cc71e578882fc6c75959d50 (patch)
treec239aa72b11dbc98e93734439cd725c8ee4729dc
parentadded cd to lua api (diff)
updated the example.lua to use new cd command
-rw-r--r--.lush/scripts/example.lua4
1 files changed, 2 insertions, 2 deletions
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)