-2

Windows 10. cmder/clink environment.

For example I want to add alias for fast history watching:

cat %CMDER_ROOT%\config\.history - work if i copy-paste it to console.

But this line at aliases.config history=cat %CMDER_ROOT%\config\.history - doesn't work correctly.

Output is: cat: '%CMDER_ROOT%\config\.history': No such file or directory.

So how I can force this alias to be executed before "been eaten" by cat (^-^)

AuthorProxy
  • 7,946
  • 3
  • 27
  • 40
  • 2
    Unfortunately, [wishful thinking does not cause features to spring into existence](https://blogs.msdn.microsoft.com/oldnewthing/20120927-00/?p=6483). – Bill_Stewart Aug 01 '16 at 17:03
  • @Maximus The problem not to store alias, but to expand environment variable from that file. When I store alias with windows environment variable as at my example, it doesn't expanded to full path – AuthorProxy Aug 01 '16 at 21:41
  • seems it was bug at clink, that was already fixed – AuthorProxy Oct 11 '16 at 09:18

2 Answers2

0

Expanding environment variable names between % symbols is a cmd.exe and Windows Explorer shell feature. Whatever program is reading your aliases.config file would need to do likewise.

Bill_Stewart
  • 22,916
  • 4
  • 51
  • 62
0

Seems it was bug at clink parser, that was already fixed

AuthorProxy
  • 7,946
  • 3
  • 27
  • 40