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

WARNING: Enable-GitColors is Obsolete and will be removed in a future version of posh-git. #568

Closed
eeree opened this issue Jul 31, 2015 · 5 comments

Comments

@eeree
Copy link
Contributor

eeree commented Jul 31, 2015

Recently posh-git has been updated and some features started to be deprecated. One of them is Enable-GitColors. From now on this feature is ON by default and users, who run the command Install-Module posh-git will get the following error:

WARNING: Enable-GitColors is Obsolete and will be removed in a future version of posh-git.

ixp3wl5

@eeree
Copy link
Contributor Author

eeree commented Jul 31, 2015

Attached fix does NOT remove colors from git repositories. Newer version of posh-git has simply made this option default.
2015-07-31 21_52_34-cmder

@puradox
Copy link

puradox commented Aug 1, 2015

If you're tired of the warning, simply comment out Enable-GitColors on line 54 in vendor/profile.ps1 (location may vary on release).

# Load special features come from posh-git
if ($gitStatus) {
    #Enable-GitColors
    Start-SshAgent -Quiet
}

@eeree
Copy link
Contributor Author

eeree commented Aug 2, 2015

@puradox True. This is why I suggested a change in a pull request, to remove this unnecessary line of code. It's not used anymore.

@eeree
Copy link
Contributor Author

eeree commented Aug 4, 2015

To clear things up. In this commit! Enable-GitColors has been removed. As for now it's just a dummy function - colors are enabled by default (as you see on a screenshot above).

@maximejobin
Copy link

Awesome. Commenting Enable-GitColors worked.

jamiepenney added a commit to jamiepenney/cmder that referenced this issue Mar 9, 2016
This is a default in Posh-Git now. It complains about it being obsolete, and it will be removed in future versions of Posh-Git

See cmderdev#568
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

4 participants