Jump to content

Adding Command Aliases through LISP


Peter M. Gruhn
 Share

Recommended Posts

Anybody know if it's possible (and if so, how) to add a command alias through lisp?

 

Like so?

 

(defun C:ALIASES()

(ALIAS "xl" "XLINE")

(ALIAS "zap" "ERASE")

(princ)

)

 

Except it would work.

 

Yes, I mean command alias. No, I don't want to just create a new lisp function.

Link to comment
Share on other sites

  • 1 month later...
Anybody know if it's possible (and if so, how) to add a command alias through lisp?

 

Like so?

 

(defun C:ALIASES()

(ALIAS "xl" "XLINE")

(ALIAS "zap" "ERASE")

(princ)

)

 

 

 

Peter,

 

Attached example of how to create 'aliases' through LISP. You need to create a new 'function' (defun C:function ()) for each command you want to define. I usually type the alias I want to use on the command line first to check it hasn't already been assigned, then add MY preferred alias. Drop lisp file in -> appload -> 'Startup Suite' Content.

Link to comment
Share on other sites

Thanks for the code, Rob. Don't remember anymore why, but I really wanted to create command aliases not "aliases". Meanwhile I'ma look through your list to see what commands and aliases you think are commonly useful... Henh, you make the one "most important" change I do.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...