diff options
| author | 2024-09-09 16:17:08 -0400 | |
|---|---|---|
| committer | 2024-09-09 16:17:08 -0400 | |
| commit | 521316d09b39a410d7e797efa176371e31a3a57e (patch) | |
| tree | bb0c6bb5a9df1280fceb483983e2328ee87c0da0 /.lush/init.lua | |
| parent | bugfix to inline backspace and delete on multiline buffer (diff) | |
add aliasing to init.lua
Diffstat (limited to '.lush/init.lua')
| -rw-r--r-- | .lush/init.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/.lush/init.lua b/.lush/init.lua index 26fe71e..5446dd0 100644 --- a/.lush/init.lua +++ b/.lush/init.lua @@ -25,11 +25,10 @@ lush.setenv("PATH", path) -- the prompt can be customized here too -- %u is username, %h is hostname, %w is current working directory lush.setPrompt("[%u@%h: %w]") --- any global functions that accept either no parameters or just an array of args --- will be read in and stored as built in commands for the shell -function my_command(args) - print("my custom command") -end + +-- aliases can be defined using the alias method by passing the alias name +-- and the command to execute with the alias +lush.alias("h", "help") -- all functions from the Lunar Shell Lua API are available to you to -- customize your startup however you want |
