Unix like Alias command

Post Reply
Hyla
Posts: 1
Joined: Mon Dec 21, 2020 1:36 pm

Unix like Alias command

Post by Hyla »

Hello,

I'm new to Mudlet and have been looking around for something I think I would like to have. In the Mudlet Command Line I would like to do something similar to a Unix like alias command and also a grep like command.

Similar to the Unix `alias` command

Code: Select all

alias
Similar to the Unix `alias` command with a `grep`.

Code: Select all

alias | grep -i fireball
Being new to Mudlet I imported a package that seems to be widely used for the Mud I'm playing (Toril). The package I've imported has a large number of Alias', Triggers, etc already defined. I know I can go into the UI and look to see if an alias is defined and what it does, but I'd prefer to do it from the Mudlet Command Line.

If possible, please let me know if there is something already defined (I've been looking for a while already) or if this is something I could write a function/script for.

Please let me know if you have any questions.

Cheers,
Hyla

User avatar
Vadi
Posts: 4878
Joined: Sat Mar 14, 2009 3:13 pm

Re: Unix like Alias command

Post by Vadi »

Hi,

There's no such functionality at the moment. While you can search if a particular alias exists with https://wiki.mudlet.org/w/Manual:Lua_Functions#exists, you can't get a listing of all aliases.

If you'd like, you can create all your aliases yourself with tempAliases and then you could have a text listing of them all: https://wiki.mudlet.org/w/Manual:Lua_Fu ... #tempAlias

Topic moved from Tips & Tricks to help because this is a help question, hope that's OK with you

Post Reply