Difference between revisions of "Alias"

From Kolmafia
Jump to navigation Jump to search
imported>Heeheehee
m (Category...?)
imported>Bale
Line 1: Line 1:
An alias is a shortcut in the CLI, set by users. For example, a simple alias is mapping the CLI function "familiar" to the function "f", as a shortcut.  
+
An alias is a shortcut in the CLI, set by users. For example, a simple alias is mapping the CLI function "familiar" to the function "f", as a shortcut. To remove an alias you need to use the unalias command.
  
 
==Simple Example==
 
==Simple Example==

Revision as of 19:26, 7 June 2010

An alias is a shortcut in the CLI, set by users. For example, a simple alias is mapping the CLI function "familiar" to the function "f", as a shortcut. To remove an alias you need to use the unalias command.

Simple Example

alias f => familiar

Now, instead of typing familiar pixie or familiar sandworm, you can just type f pixie or f sandworm.

Complex Example

alias dentures => checkpoint; equip frilly skirt; ash visit_url("inv_use.php?which=3&whichitem=2951&pwd");
visit_url("choice.php?whichchoice=188&option=3&choiceform3=Catburgle&pwd"); cli_execute("outfit checkpoint");

This equips a frilly skirt, chooses the right choice in the Orcish Frat House Blueprints adventure, and then re-equips whatever pants you had on when you type dentures into the CLI.