Closed bradcypert closed 5 years ago
@matchai thanks for looking over my PR and showing me a more idiomatic way to handle the search of a string. I'm not 100% sure why tests would be getting a different version on Linux. As far as I know, the Linux image shouldn't have elixir preinstalled on it and it doesn't look like the travis.yml is adding any elixir stuff.
@halostatue You were right! I think I just needed to set a value for the Elixir version.
@all-contributors please add @halostatue for reviewing
@matchai
I couldn't determine any contributions to add, did you specify any contributions? Please make sure to use valid contribution names.
@all-contributors please add @halostatue for review
@matchai
I've put up a pull request to add @halostatue! :tada:
:tada: This PR is included in version 2.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
This PR adds in support for Elixir into SpaceFish. This matches parity of the feature in https://github.com/denysdovhan/spaceship-prompt
Description
Adds in a section for Elixir support into SpaceFish. It checks against
iex
,exenv
andelixir
to see if you have an elixir install and only shows in directories that contain mix.ex or other elixir files. It's configureable via the following options:SPACEFISH_ELIXIR_SHOW
true
SPACEFISH_ELIXIR_PREFIX
$SPACEFISH_PROMPT_DEFAULT_PREFIX
SPACEFISH_ELIXIR_SUFFIX
$SPACEFISH_PROMPT_DEFAULT_SUFFIX
SPACEFISH_ELIXIR_SYMBOL
💧·
SPACEFISH_ELIXIR_COLOR
magenta
Motivation and Context
This helps maintain the mission of absolute parity with Spaceship.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
This was tested by writing and running unit tests for my code. I wasn't able to find the build instructions, so I'm unsure how to actually build and test this locally, however.
Checklist: