From 4154cdf20462d3af1cd85e9b0d359127f9ae4b6f Mon Sep 17 00:00:00 2001 From: Jan Schulz Date: Tue, 24 Nov 2015 23:38:26 +0100 Subject: [PATCH] Do not overwrite aliases on update --- config/aliases => vendor/aliases.example | 0 vendor/init.bat | 7 +++++++ 2 files changed, 7 insertions(+) rename config/aliases => vendor/aliases.example (100%) 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 9b66cf5..e923d0d 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"