Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

% variable expansion in config/alias #791

Closed
thecere opened this issue Jan 7, 2016 · 6 comments
Closed

% variable expansion in config/alias #791

thecere opened this issue Jan 7, 2016 · 6 comments

Comments

@thecere
Copy link

thecere commented Jan 7, 2016

The % variable expansion in https://github.com/cmderdev/cmder/blob/master/config/aliases does not work for me (win 10):

λ history
cat: %CMDER_ROOT%\config\.history: No such file or directory
λ which doskey
/c/WINDOWS/system32/doskey
@jankatins
Copy link
Contributor

IMO this error only means that .history is not yet created. AFAIK, this file is written when cmder is closed (and only has the commands available which were in the last closed cmder session).

@thecere
Copy link
Author

thecere commented Jan 7, 2016

Nope, .history is there. I've stumbled upon this by trying to append stuff to PATH with a custom alias. I've only used the history alias as an example, as it's already build-in.

@jankatins
Copy link
Contributor

ok, I should have tested that first:

λ history
cat: %CMDER_ROOT%\config\.history: No such file or directory

Looks like mridgers/clink#344?

@jankatins
Copy link
Contributor

And duplicate of #684 -> should be fixed by a updated clink, which is included in one of the newer dev builds.

@jankatins
Copy link
Contributor

Verified that this is fixed by installing the latest dev versions via appveyor: https://ci.appveyor.com/project/MartiUK/cmder/build/1.0.138-development/artifacts

@thecere
Copy link
Author

thecere commented Jan 7, 2016

Jep, thnx. Works for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants