Added unalias command. Updated to v0.22.0

This commit is contained in:
Daniel Xie
2017-06-21 12:12:08 -05:00
parent fd7796f5d1
commit 8a95fb4df7
6 changed files with 51 additions and 31 deletions
+8
View File
@@ -30,6 +30,14 @@ function getAlias(name) {
return null;
}
function removeAlias(name) {
if (Aliases.hasOwnProperty(name)) {
delete Aliases[name];
return true;
}
return false;
}
//Returns the original string with any aliases substituted in
//Aliases only applied to "whole words", one level deep
function substituteAliases(origCommand) {