-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed - not running user-aliases.cmd if aliases variable is overridde…
…n in profile.d
- Loading branch information
Dax T. Games
committed
Mar 21, 2016
1 parent
d5a1ce6
commit 86dd077
Showing
1 changed file
with
16 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86dd077
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daxgames After this it errors for every user alias in the user file:
86dd077
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What changed? This was merged over a month ago and this is the first I have heard over it. Works great for me.
86dd077
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does your user-aliases.cmd look like?
86dd077
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daxgames yeah I never updated 📦
86dd077
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The init.bat SHOULD have updated the old 'aliases' file format to the new self executing format. I don't know why it did not.
You need to add the below to the top of the 'user-aliases.cmd' file:
;= @echo off
;= rem Call DOSKEY and use this file as the macrofile
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0%
;= rem In batch mode, jump to the end of the file
;= goto:eof
;= Add aliases below here
86dd077
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daxgames Then that part is not working, I just tried it again
and the user-aliases.cmd had the same content as the old aliases file with the part missing from your last comment. When I add that, it works.
86dd077
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works if there is an aliases file and other is not a user-aliases.and file. If the user-aliases.cmd exists and has the same content as the old aliases file then the upgrade of the old file may not happen. I may need to revisit the update logic.