[FEATURE] Support for other shells
wiggleforlife opened this issue · comments
Currently, the program aliases the Godot path in the .bashrc
file on Linux and .zshrc
on Mac, but not everyone uses Bash on Linux (for example, I use ZSH). Is it possible to instead specify the output file in the godotenv godot env setup
command or similar?
This is tricky, since anything we do in GodotEnv has to work across each of the 3 OS's. I don't know of a robust "shell detection" system that will work reasonably well across each OS.
GodotEnv does tell to source the modified zshrc/bashrc file when you run godotenv godot env setup
or after an install. We should probably make it also just spit out what it adds to the zhsrc or bashrc file so people who have configured different shells will realize what they need to add more easily.
I'm in favor of our current approach that uses common defaults based on OS in addition to listing what we add so those who use another shell can make those edits where necessary. This way we avoid being too clever with detection.
Solved in #54