diff options
| author | 2024-09-03 22:33:15 -0400 | |
|---|---|---|
| committer | 2024-09-03 22:33:15 -0400 | |
| commit | 893626403f9cc1111cc71e578882fc6c75959d50 (patch) | |
| tree | c239aa72b11dbc98e93734439cd725c8ee4729dc | |
| parent | added cd to lua api (diff) | |
updated the example.lua to use new cd command
| -rw-r--r-- | .lush/scripts/example.lua | 4 |
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) |
