cmder: Aliases not working at all

I’m working with standard standard cmd shell. My configured aliases are not working (e.g. gl)

Running the alias command yields the following output: clear=cls clink="C:\cmder\vendor\clink/clink_x64.exe" --cfgdir "C:\cmder\config" $* cmderr=cd /d "%CMDER_ROOT%" e.=explorer . gl=git log --oneline --all --graph --decorate $* history=cat "%CMDER_ROOT%\config\.history" ls=ls --color $*. pwd=cd unalias=alias /d $1 vi=vim $*

But none of these commands are recognized.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (2 by maintainers)

Most upvoted comments

Ok guys, found what the issue was. I am using Windows 10 Insider build 15025 - the problem was with modification that were made by Microsoft to standard cmd.exe

To solve this I had to “Use legacy console” option in standard cmd - which solved this issue.

  • Open CMD window: Win+S and search for cmd(Command Prompt)
  • Right Click on the window title and select Properties
  • Check the use legacy option image

image

start this option in your cmd. this will solve

Legacy console isn’t really a solution though. It’s more a band-aid. I hope cmder can fix this. Even the built in Environment settings page aliases don’t work.

Aaaaaand enabling Legacy Console breaks WSL / Bash for Windows (whenever you try to run it, it says “Unsupported console settings. In order to use this feature the legacy console must be disabled.”)

Just wanted to add that the recent Creators Update broke aliases in cmder. Enabling Legacy Console (as explained above) fixed it.

@Rusk85 Nope, not the same things. @jerivas was talking about Windows Sybsytem on Linux, not the Bash bundled with Git for Windows.

I can confirm that enabling legacy console mucks up multiple places including the ability to launch the WSL bash. It looks like cmder will need to find an alternative way of implementing the aliases.

Just wanted to add since this issue was closed with a workaround that the issue has been properly fixed in the most recent version and is aliases are working without legacy mode in version 1.3.6 on Win 10 build 1803.

@noopole

  1. Download a fresh version of cmder.
  2. Extract it to a new folder.
  3. Run cmder.exe
  4. Type cd /d %windir%
  5. Type cmderr

If the directory path changes to where you extracted cmder then aliases are working properly.