From 521316d09b39a410d7e797efa176371e31a3a57e Mon Sep 17 00:00:00 2001 From: BanceDev Date: Mon, 9 Sep 2024 16:17:08 -0400 Subject: add aliasing to init.lua --- .lush/init.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to '.lush/init.lua') 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 -- cgit v1.2.3-59-g8ed1b