How can I fix this error when trying to install Oh-My-Fish?











up vote
0
down vote

favorite












I am using fish via Cygwin on Windows 10; whenever I try to install OMF, I am presented with this error:



curl -L https://get.oh-my.fish | fish.exe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 194 100 194 0 0 194 0 0:00:01 --:--:-- 0:00:01 2487
100 19025 100 19025 0 0 19025 0 0:00:01 0:00:01 --:--:-- 13379
Checking for a sane environment...
Install aborted: /cygdrive/c/Program Files/Git/cmd/git is Git for Windows which is not supported.


It implies that Git for Windows is not supported by OMF, but surely this isn't the case because I have seen several posts on GitHub that begin with something along the lines of:




After installing OMF on my Windows machine...




which implies that the installation was successful and thus can be achieved.



Is there a resolution to this?










share|improve this question






















  • You could put Cygwin Git in your PATH first.
    – slhck
    Nov 22 at 14:16










  • How do I do that? As in, I know how to add things to my PATH - what I want to know is how to specifically put Cygwin Git in my PATH. I'm running Cygwin setup again and am now adding the git packages that way. Is that the right approach? Also, I'm not sure if it's relevant, but I already use Git through Cygwin/fish.
    – SnookerFan
    Nov 22 at 14:23












  • The Git you are using is the one installed with the Git for Windows installer. When you install Git via Cygwin, you will get another git executable (probably at /usr/bin/git or somewhere similar). Which one you use for your daily work does not really matter. They may just differ in terms of functionality. You may even continue using the Windows Git; but for the installation of oh-my-fish, you could probably override the path temporarily, so that it'll continue.
    – slhck
    Nov 22 at 15:22












  • PS: From my own experience, having a mix of Cygwin and Windows executables (Git, Python) is a little bit confusing but manageable. Just make sure you know which one you are calling.
    – slhck
    Nov 22 at 15:23










  • Thank you for the comments. I finished installing the Git packages via Cygwin and it worked!
    – SnookerFan
    Nov 22 at 16:50















up vote
0
down vote

favorite












I am using fish via Cygwin on Windows 10; whenever I try to install OMF, I am presented with this error:



curl -L https://get.oh-my.fish | fish.exe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 194 100 194 0 0 194 0 0:00:01 --:--:-- 0:00:01 2487
100 19025 100 19025 0 0 19025 0 0:00:01 0:00:01 --:--:-- 13379
Checking for a sane environment...
Install aborted: /cygdrive/c/Program Files/Git/cmd/git is Git for Windows which is not supported.


It implies that Git for Windows is not supported by OMF, but surely this isn't the case because I have seen several posts on GitHub that begin with something along the lines of:




After installing OMF on my Windows machine...




which implies that the installation was successful and thus can be achieved.



Is there a resolution to this?










share|improve this question






















  • You could put Cygwin Git in your PATH first.
    – slhck
    Nov 22 at 14:16










  • How do I do that? As in, I know how to add things to my PATH - what I want to know is how to specifically put Cygwin Git in my PATH. I'm running Cygwin setup again and am now adding the git packages that way. Is that the right approach? Also, I'm not sure if it's relevant, but I already use Git through Cygwin/fish.
    – SnookerFan
    Nov 22 at 14:23












  • The Git you are using is the one installed with the Git for Windows installer. When you install Git via Cygwin, you will get another git executable (probably at /usr/bin/git or somewhere similar). Which one you use for your daily work does not really matter. They may just differ in terms of functionality. You may even continue using the Windows Git; but for the installation of oh-my-fish, you could probably override the path temporarily, so that it'll continue.
    – slhck
    Nov 22 at 15:22












  • PS: From my own experience, having a mix of Cygwin and Windows executables (Git, Python) is a little bit confusing but manageable. Just make sure you know which one you are calling.
    – slhck
    Nov 22 at 15:23










  • Thank you for the comments. I finished installing the Git packages via Cygwin and it worked!
    – SnookerFan
    Nov 22 at 16:50













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am using fish via Cygwin on Windows 10; whenever I try to install OMF, I am presented with this error:



curl -L https://get.oh-my.fish | fish.exe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 194 100 194 0 0 194 0 0:00:01 --:--:-- 0:00:01 2487
100 19025 100 19025 0 0 19025 0 0:00:01 0:00:01 --:--:-- 13379
Checking for a sane environment...
Install aborted: /cygdrive/c/Program Files/Git/cmd/git is Git for Windows which is not supported.


It implies that Git for Windows is not supported by OMF, but surely this isn't the case because I have seen several posts on GitHub that begin with something along the lines of:




After installing OMF on my Windows machine...




which implies that the installation was successful and thus can be achieved.



Is there a resolution to this?










share|improve this question













I am using fish via Cygwin on Windows 10; whenever I try to install OMF, I am presented with this error:



curl -L https://get.oh-my.fish | fish.exe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 194 100 194 0 0 194 0 0:00:01 --:--:-- 0:00:01 2487
100 19025 100 19025 0 0 19025 0 0:00:01 0:00:01 --:--:-- 13379
Checking for a sane environment...
Install aborted: /cygdrive/c/Program Files/Git/cmd/git is Git for Windows which is not supported.


It implies that Git for Windows is not supported by OMF, but surely this isn't the case because I have seen several posts on GitHub that begin with something along the lines of:




After installing OMF on my Windows machine...




which implies that the installation was successful and thus can be achieved.



Is there a resolution to this?







git cygwin fish






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 at 12:42









SnookerFan

65241331




65241331












  • You could put Cygwin Git in your PATH first.
    – slhck
    Nov 22 at 14:16










  • How do I do that? As in, I know how to add things to my PATH - what I want to know is how to specifically put Cygwin Git in my PATH. I'm running Cygwin setup again and am now adding the git packages that way. Is that the right approach? Also, I'm not sure if it's relevant, but I already use Git through Cygwin/fish.
    – SnookerFan
    Nov 22 at 14:23












  • The Git you are using is the one installed with the Git for Windows installer. When you install Git via Cygwin, you will get another git executable (probably at /usr/bin/git or somewhere similar). Which one you use for your daily work does not really matter. They may just differ in terms of functionality. You may even continue using the Windows Git; but for the installation of oh-my-fish, you could probably override the path temporarily, so that it'll continue.
    – slhck
    Nov 22 at 15:22












  • PS: From my own experience, having a mix of Cygwin and Windows executables (Git, Python) is a little bit confusing but manageable. Just make sure you know which one you are calling.
    – slhck
    Nov 22 at 15:23










  • Thank you for the comments. I finished installing the Git packages via Cygwin and it worked!
    – SnookerFan
    Nov 22 at 16:50


















  • You could put Cygwin Git in your PATH first.
    – slhck
    Nov 22 at 14:16










  • How do I do that? As in, I know how to add things to my PATH - what I want to know is how to specifically put Cygwin Git in my PATH. I'm running Cygwin setup again and am now adding the git packages that way. Is that the right approach? Also, I'm not sure if it's relevant, but I already use Git through Cygwin/fish.
    – SnookerFan
    Nov 22 at 14:23












  • The Git you are using is the one installed with the Git for Windows installer. When you install Git via Cygwin, you will get another git executable (probably at /usr/bin/git or somewhere similar). Which one you use for your daily work does not really matter. They may just differ in terms of functionality. You may even continue using the Windows Git; but for the installation of oh-my-fish, you could probably override the path temporarily, so that it'll continue.
    – slhck
    Nov 22 at 15:22












  • PS: From my own experience, having a mix of Cygwin and Windows executables (Git, Python) is a little bit confusing but manageable. Just make sure you know which one you are calling.
    – slhck
    Nov 22 at 15:23










  • Thank you for the comments. I finished installing the Git packages via Cygwin and it worked!
    – SnookerFan
    Nov 22 at 16:50
















You could put Cygwin Git in your PATH first.
– slhck
Nov 22 at 14:16




You could put Cygwin Git in your PATH first.
– slhck
Nov 22 at 14:16












How do I do that? As in, I know how to add things to my PATH - what I want to know is how to specifically put Cygwin Git in my PATH. I'm running Cygwin setup again and am now adding the git packages that way. Is that the right approach? Also, I'm not sure if it's relevant, but I already use Git through Cygwin/fish.
– SnookerFan
Nov 22 at 14:23






How do I do that? As in, I know how to add things to my PATH - what I want to know is how to specifically put Cygwin Git in my PATH. I'm running Cygwin setup again and am now adding the git packages that way. Is that the right approach? Also, I'm not sure if it's relevant, but I already use Git through Cygwin/fish.
– SnookerFan
Nov 22 at 14:23














The Git you are using is the one installed with the Git for Windows installer. When you install Git via Cygwin, you will get another git executable (probably at /usr/bin/git or somewhere similar). Which one you use for your daily work does not really matter. They may just differ in terms of functionality. You may even continue using the Windows Git; but for the installation of oh-my-fish, you could probably override the path temporarily, so that it'll continue.
– slhck
Nov 22 at 15:22






The Git you are using is the one installed with the Git for Windows installer. When you install Git via Cygwin, you will get another git executable (probably at /usr/bin/git or somewhere similar). Which one you use for your daily work does not really matter. They may just differ in terms of functionality. You may even continue using the Windows Git; but for the installation of oh-my-fish, you could probably override the path temporarily, so that it'll continue.
– slhck
Nov 22 at 15:22














PS: From my own experience, having a mix of Cygwin and Windows executables (Git, Python) is a little bit confusing but manageable. Just make sure you know which one you are calling.
– slhck
Nov 22 at 15:23




PS: From my own experience, having a mix of Cygwin and Windows executables (Git, Python) is a little bit confusing but manageable. Just make sure you know which one you are calling.
– slhck
Nov 22 at 15:23












Thank you for the comments. I finished installing the Git packages via Cygwin and it worked!
– SnookerFan
Nov 22 at 16:50




Thank you for the comments. I finished installing the Git packages via Cygwin and it worked!
– SnookerFan
Nov 22 at 16:50










1 Answer
1






active

oldest

votes

















up vote
0
down vote













The Git you are using is the one installed with the Git for Windows installer.



When you install Git via Cygwin, you will get another git executable. Which one you use for your daily work does not really matter. They may just differ in terms of functionality or compatibility (e.g., the Windows Git comes with some shell extensions for Windows Explorer).



Once you have installed Git via the Cygwin installer, check your Git executables:



which -a git


This will list the order of preference. For the installation of oh-my-fish, make sure that Cygwin Git comes first (/usr/bin/git), so that it'll continue with the installation.



You can then switch back to whatever Git you want to use for your daily work by overriding the path, e.g. by adding this to your shell profile:



export PATH="/cygdrive/c/Program Files/Git/cmd/:$PATH"





share|improve this answer























  • This is helpful, thank you. As per my comment in the original question, I finished installing Git via Cygwin and it now works. I ran which -a git and got this (I have denote a new line with ;): /bin/git; /usr/bin/git; /cygdrive/c/Program Files/Git/cmd/git. However, after installing OMF, it significantly slowed down the CLI, so I have removed it for now but will look into why that happened another time.
    – SnookerFan
    Nov 23 at 9:19










  • Thanks for the additional info. I don't have Windows to test here. If this answer solved your problem, I'd appreciate if you marked it as accepted.
    – slhck
    Nov 23 at 14:03











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377557%2fhow-can-i-fix-this-error-when-trying-to-install-oh-my-fish%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













The Git you are using is the one installed with the Git for Windows installer.



When you install Git via Cygwin, you will get another git executable. Which one you use for your daily work does not really matter. They may just differ in terms of functionality or compatibility (e.g., the Windows Git comes with some shell extensions for Windows Explorer).



Once you have installed Git via the Cygwin installer, check your Git executables:



which -a git


This will list the order of preference. For the installation of oh-my-fish, make sure that Cygwin Git comes first (/usr/bin/git), so that it'll continue with the installation.



You can then switch back to whatever Git you want to use for your daily work by overriding the path, e.g. by adding this to your shell profile:



export PATH="/cygdrive/c/Program Files/Git/cmd/:$PATH"





share|improve this answer























  • This is helpful, thank you. As per my comment in the original question, I finished installing Git via Cygwin and it now works. I ran which -a git and got this (I have denote a new line with ;): /bin/git; /usr/bin/git; /cygdrive/c/Program Files/Git/cmd/git. However, after installing OMF, it significantly slowed down the CLI, so I have removed it for now but will look into why that happened another time.
    – SnookerFan
    Nov 23 at 9:19










  • Thanks for the additional info. I don't have Windows to test here. If this answer solved your problem, I'd appreciate if you marked it as accepted.
    – slhck
    Nov 23 at 14:03















up vote
0
down vote













The Git you are using is the one installed with the Git for Windows installer.



When you install Git via Cygwin, you will get another git executable. Which one you use for your daily work does not really matter. They may just differ in terms of functionality or compatibility (e.g., the Windows Git comes with some shell extensions for Windows Explorer).



Once you have installed Git via the Cygwin installer, check your Git executables:



which -a git


This will list the order of preference. For the installation of oh-my-fish, make sure that Cygwin Git comes first (/usr/bin/git), so that it'll continue with the installation.



You can then switch back to whatever Git you want to use for your daily work by overriding the path, e.g. by adding this to your shell profile:



export PATH="/cygdrive/c/Program Files/Git/cmd/:$PATH"





share|improve this answer























  • This is helpful, thank you. As per my comment in the original question, I finished installing Git via Cygwin and it now works. I ran which -a git and got this (I have denote a new line with ;): /bin/git; /usr/bin/git; /cygdrive/c/Program Files/Git/cmd/git. However, after installing OMF, it significantly slowed down the CLI, so I have removed it for now but will look into why that happened another time.
    – SnookerFan
    Nov 23 at 9:19










  • Thanks for the additional info. I don't have Windows to test here. If this answer solved your problem, I'd appreciate if you marked it as accepted.
    – slhck
    Nov 23 at 14:03













up vote
0
down vote










up vote
0
down vote









The Git you are using is the one installed with the Git for Windows installer.



When you install Git via Cygwin, you will get another git executable. Which one you use for your daily work does not really matter. They may just differ in terms of functionality or compatibility (e.g., the Windows Git comes with some shell extensions for Windows Explorer).



Once you have installed Git via the Cygwin installer, check your Git executables:



which -a git


This will list the order of preference. For the installation of oh-my-fish, make sure that Cygwin Git comes first (/usr/bin/git), so that it'll continue with the installation.



You can then switch back to whatever Git you want to use for your daily work by overriding the path, e.g. by adding this to your shell profile:



export PATH="/cygdrive/c/Program Files/Git/cmd/:$PATH"





share|improve this answer














The Git you are using is the one installed with the Git for Windows installer.



When you install Git via Cygwin, you will get another git executable. Which one you use for your daily work does not really matter. They may just differ in terms of functionality or compatibility (e.g., the Windows Git comes with some shell extensions for Windows Explorer).



Once you have installed Git via the Cygwin installer, check your Git executables:



which -a git


This will list the order of preference. For the installation of oh-my-fish, make sure that Cygwin Git comes first (/usr/bin/git), so that it'll continue with the installation.



You can then switch back to whatever Git you want to use for your daily work by overriding the path, e.g. by adding this to your shell profile:



export PATH="/cygdrive/c/Program Files/Git/cmd/:$PATH"






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 23 at 14:02

























answered Nov 23 at 8:28









slhck

158k47437461




158k47437461












  • This is helpful, thank you. As per my comment in the original question, I finished installing Git via Cygwin and it now works. I ran which -a git and got this (I have denote a new line with ;): /bin/git; /usr/bin/git; /cygdrive/c/Program Files/Git/cmd/git. However, after installing OMF, it significantly slowed down the CLI, so I have removed it for now but will look into why that happened another time.
    – SnookerFan
    Nov 23 at 9:19










  • Thanks for the additional info. I don't have Windows to test here. If this answer solved your problem, I'd appreciate if you marked it as accepted.
    – slhck
    Nov 23 at 14:03


















  • This is helpful, thank you. As per my comment in the original question, I finished installing Git via Cygwin and it now works. I ran which -a git and got this (I have denote a new line with ;): /bin/git; /usr/bin/git; /cygdrive/c/Program Files/Git/cmd/git. However, after installing OMF, it significantly slowed down the CLI, so I have removed it for now but will look into why that happened another time.
    – SnookerFan
    Nov 23 at 9:19










  • Thanks for the additional info. I don't have Windows to test here. If this answer solved your problem, I'd appreciate if you marked it as accepted.
    – slhck
    Nov 23 at 14:03
















This is helpful, thank you. As per my comment in the original question, I finished installing Git via Cygwin and it now works. I ran which -a git and got this (I have denote a new line with ;): /bin/git; /usr/bin/git; /cygdrive/c/Program Files/Git/cmd/git. However, after installing OMF, it significantly slowed down the CLI, so I have removed it for now but will look into why that happened another time.
– SnookerFan
Nov 23 at 9:19




This is helpful, thank you. As per my comment in the original question, I finished installing Git via Cygwin and it now works. I ran which -a git and got this (I have denote a new line with ;): /bin/git; /usr/bin/git; /cygdrive/c/Program Files/Git/cmd/git. However, after installing OMF, it significantly slowed down the CLI, so I have removed it for now but will look into why that happened another time.
– SnookerFan
Nov 23 at 9:19












Thanks for the additional info. I don't have Windows to test here. If this answer solved your problem, I'd appreciate if you marked it as accepted.
– slhck
Nov 23 at 14:03




Thanks for the additional info. I don't have Windows to test here. If this answer solved your problem, I'd appreciate if you marked it as accepted.
– slhck
Nov 23 at 14:03


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377557%2fhow-can-i-fix-this-error-when-trying-to-install-oh-my-fish%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

AnyDesk - Fatal Program Failure

How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

QoS: MAC-Priority for clients behind a repeater