I can see the output of the branch name no problem (although, in version 1.3.4+ it also strangely outputs "master -> origin" when it didn't use to), but I can't figure out why it has never successfully shown changes. This works in Powershell+Poshgit under Cmder, and looking at the \vendor\clink.lua script it seems like this is where the changes would go.


I found the gist for changing Clink git prompt here: https://gist.github.com/jonasem/e8b3a6258a495946df12

If you replace the matching functions with the git_prompt_filter and get_git_status within, it will then display. For convenience, I've made a gist for dropping into "%CMDER_ROOT%\config\" (as the one in vendor gets replaced every install of cmder, per the instructions in the file): https://gist.github.com/mattdkerr/23db4db40c276b1481b01b0fa26de009

You will need to delete or edit %CMDER_ROOT%\vendor\clink.lua and comment out the set filter commands (double hyphen, or '--', is comment line prefix).

  • worked without modifying %CMDER_ROOT%\vendor\clink.lua . Not sure why. I did find out that the mentioned "comment out set filter commands" means comment out the line: "clink.prompt.register_filter(git_prompt_filter, 50)" – jens Mar 7 at 21:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.