diff --git a/config/aliases b/vendor/aliases.example similarity index 100% rename from config/aliases rename to vendor/aliases.example diff --git a/vendor/init.bat b/vendor/init.bat index 9b66cf5a1..e923d0db7 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -51,6 +51,13 @@ :: Enhance Path @set PATH=%CMDER_ROOT%\bin;%PATH%;%CMDER_ROOT%\ + +:: make sure we have an example file +@if not exist "%CMDER_ROOT%\config\aliases" ( + echo Creating intial aliases in %CMDER_ROOT%\config\aliases + copy "%CMDER_ROOT%\vendor\aliases.example" "%CMDER_ROOT%\config\aliases" > null +) + :: Add aliases @doskey /macrofile="%CMDER_ROOT%\config\aliases"