From 99f28d30739c1879c71ab4363ba50d01b9a76d4e Mon Sep 17 00:00:00 2001 From: Travis Campbell <(none)> Date: Mon, 22 Jan 2018 14:22:49 -0600 Subject: [PATCH] Allow placing aliases in a separate file so they can be checked into source control independent of the private user data (auth keys) --- src/utils/config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/config.js b/src/utils/config.js index 0cb9cd2..d05b55d 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -17,6 +17,7 @@ const BASE_CONFIG = path.normalize(__dirname + '/../../config.json'); * Default User Configuration */ let DEFAULT_USER_CONFIG = path.normalize(os.homedir() + '/.rtm.json'); +let DEFAULT_ALIAS_CONFIG = path.normalize(os.homedir() + '/.rtm.aliases.json'); /** @@ -30,6 +31,7 @@ class Config { */ constructor() { this.reset(DEFAULT_USER_CONFIG); + this.read(DEFAULT_ALIAS_CONFIG); } /**