diff --git a/src/app/convert-to-linux-scheme.js b/src/app/convert-to-linux-scheme.js index 7f0fa4a..0cc6874 100644 --- a/src/app/convert-to-linux-scheme.js +++ b/src/app/convert-to-linux-scheme.js @@ -6,28 +6,6 @@ const constants = require('../commons/constants') -/* - - echo -en "\e]P0232323" #black - echo -en "\e]P82B2B2B" #darkgrey - echo -en "\e]P1D75F5F" #darkred - echo -en "\e]P9E33636" #red - echo -en "\e]P287AF5F" #darkgreen - echo -en "\e]PA98E34D" #green - echo -en "\e]P3D7AF87" #brown - echo -en "\e]PBFFD75F" #yellow - echo -en "\e]P48787AF" #darkblue - echo -en "\e]PC7373C9" #blue - echo -en "\e]P5BD53A5" #darkmagenta - echo -en "\e]PDD633B2" #magenta - echo -en "\e]P65FAFAF" #darkcyan - echo -en "\e]PE44C9C9" #cyan - echo -en "\e]P7E5E5E5" #lightgrey - echo -en "\e]PFFFFFFF" #white - clear #for background artifacting - -*/ - diff --git a/src/app/set-scheme.js b/src/app/set-scheme.js index 25037ae..3cd5eb5 100644 --- a/src/app/set-scheme.js +++ b/src/app/set-scheme.js @@ -5,7 +5,7 @@ -const exec = require('child_process').exec +const childProcess = require('child_process') const constants = require('../commons/constants') const parseSchemes = require('../app/parse-schemes') @@ -26,7 +26,6 @@ const setScheme = args => { })[0] const script = convertToLinuxScheme(scheme) - console.log(script) } diff --git a/src/commons/commons.js b/src/commons/commons.js index d2ce6e5..8878dad 100644 --- a/src/commons/commons.js +++ b/src/commons/commons.js @@ -36,7 +36,9 @@ commons.normaliseName = name => { appended = '-' - } else if (lastLowerCase && char === char.toUpperCase( )) { + } else if (lastLowerCase && char !== char.toLowerCase( )) { + + // if the last char was lowerser case, and the current isn't, add a dash if there isn't one already. appended = chars.slice(-1)[0] === '-' ? char.toLowerCase( )