Results 1 to 6 of 6

Thread: alias question

  1. #1

    Default alias question

    What happens if you make an alias, then, later on, a GCLI command is implemented with the same trigger as your alias?

  2. #2
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,860

    Default

    AFAIK, aliases are replaced first, as a "preprocessing" step.

    Try not to set an alias for "alias", you could end up having to edit your settings/GLOBAL_aiiases.txt

  3. #3

    Default

    "unalias" works for that, since the cli checks for spaces on both sides of the word (wasn't like that originally, phew) (btw, unalias doesn't return whether or not it was successful, could be changed?), but yeah, that answers my question, thx

  4. #4
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,860

    Default

    Oh yeah, that's another word you should alias to something else

  5. #5
    Junior Member
    Join Date
    Nov 2019
    Posts
    1

    Default

    "unalias" works for that, since the cli checks for spaces on both sides of the word (wasn't like that originally, phew) (btw, unalias doesn't return whether or not it was successful, could be changed?), but yeah, that answers my question, thx
    Originally Posted by fredg1 View Post
    Could you please give the link to the detailed guide how to use alias/unalias? Thanks!

  6. #6
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,510

    Default

    Could you please give the link to the detailed guide how to use alias/unalias? Thanks!
    Originally Posted by sergeydrn View Post
    Start here. https://wiki.kolmafia.us/index.php?title=Alias

    As a general rule, if something is documented it is likely to be on the wiki https://wiki.kolmafia.us/index.php?title=Main_Page

    As another general rule, the quality of the documentation is inconsistent - some things are are undocumented and other things are out of date or don't reflect the current state. But the wiki is maintained by KoLmafia.us users so feel free to help ;-)
    Well, thank you.
    Originally Posted by Veracity View Post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •