aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md10
-rw-r--r--demo.pngbin78824 -> 12269 bytes
2 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index df29381..a1ef970 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,16 @@ To update Lunar Shell pull the repo and run the install script again.
<img width="512" height=auto src="https://github.com/BanceDev/lush/blob/main/demo.png">
</p>
+```lua
+if args ~= nil and args[1] ~= nil then
+ if args[1]:match("%.c$") then
+ lush.exec("gcc -o " .. args[1]:sub(1, -3) .. " " .. args[1])
+ end
+else
+ print("must pass a C file to compile")
+end
+```
+
With the robust and ever growing Lua API that Lunar Shell has builtin, not only can you create powerful shell scripts to automate your workflow but also reap the benefits of having an easy to understand scripting language embedded into your command line.
To run a Lua script with Lunar Shell just type the name of the lua file you want to run followed by any arguments you want to pass to the script. Lunar Shell will automatically search the current working directory as well as the ```~/.lush/scripts``` directory and then execute the file if it locates a match.
diff --git a/demo.png b/demo.png
index 8c9ca7c..007e334 100644
--- a/demo.png
+++ b/demo.png
Binary files differ
f8284ae556?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Anselm R.Garbe 1-0/+1 2006-08-10readded border colors, this sucks leastGravatar Anselm R.Garbe 5-26/+38 2006-08-10drawing border around sel itemGravatar Anselm R.Garbe 2-6/+21 2006-08-10removed unnecessary border colorGravatar Anselm R.Garbe 5-34/+7 2006-08-10swapping my default colorsGravatar Anselm R.Garbe 1-2/+2 2006-08-10added uppercase chars for C-u and C-h as wellGravatar Anselm R.Garbe 1-0/+2 2006-08-10removed C-[ from source and man pageGravatar Anselm R.Garbe 2-5/+1 2006-08-09removed control sequences which actually aren't implemented anymore (only ↵Gravatar Anselm R.Garbe 1-4/+4 the real unix control sequences are implemented) 2006-08-08fixes to READMEGravatar Anselm R.Garbe 1-2/+2 2006-08-08default colors are bestGravatar Anselm R.Garbe 1-3/+3 2006-08-08noborderGravatar Anselm R.Garbe 1-2/+2 2006-08-08ditoGravatar Anselm R.Garbe 1-2/+2 2006-08-08using a better colorschemeGravatar Anselm R.Garbe 1-1/+1 2006-08-07removed unnecessary typedefGravatar arg@10ksloc.org 1-1/+0 2006-08-07made dmenu(1) more dwm(1) alikeGravatar arg@10ksloc.org 1-23/+22 2006-08-07font size changed as wellGravatar arg@10ksloc.org 1-1/+1 2006-08-07appliead Sanders manpage/Makefile pacthGravatar arg@10ksloc.org 2-2/+2 2006-08-07fixed dmenu.1 version infoGravatar arg@10ksloc.org 1-1/+1 2006-08-07settle with greyGravatar arg@10ksloc.org 1-2/+2 2006-08-07next version is 0.3Gravatar arg@10ksloc.org 1-1/+1 2006-08-07also made my colors tasting better with my overall colorschemeGravatar arg@10ksloc.org 1-3/+3 2006-08-07next attempt for bright background switchGravatar arg@10ksloc.org 1-3/+3 2006-08-07Added tag 0.2 for changeset 656be0f47df545dfdd2e1e0663663b8b1b26f031Gravatar arg@10ksloc.org 1-0/+1 2006-08-07added stripping to dmenu targetGravatar arg@10ksloc.org 1-0/+1 2006-08-07fixed a bad mistake setting the dmenu border to False;Gravatar arg@10ksloc.org 1-1/+0 2006-08-07renamed some functions to make it more readableGravatar arg@10ksloc.org 1-9/+9 2006-08-07updated man pageGravatar arg@10ksloc.org 1-1/+1 2006-08-07updated man pageGravatar arg@10ksloc.org 1-0/+4 2006-08-07removed -t title crap from dmenuGravatar arg@10ksloc.org 2-57/+12 2006-08-05menu now also uses -OsGravatar arg@10ksloc.org 1-2/+2 2006-08-05small changeGravatar arg@10ksloc.org 1-1/+1 2006-08-04yet another fixGravatar arg@10ksloc.org 1-2/+2 2006-08-04fixed README of dmenuGravatar arg@10ksloc.org 1-27/+10 2006-08-04fixed dist targetGravatar arg@10ksloc.org 1-1/+1 2006-08-04removed config.hGravatar arg@10ksloc.org 1-9/+0