matchai / spacefish

πŸš€πŸŸ The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
963 stars 79 forks source link

Added changes from Spaceship upstream! πŸš€β­ #79

Closed Snuggle closed 5 years ago

Snuggle commented 5 years ago

Description

This adds a config option to enable/disable verbose versioning, which should be disabled by default.

Upstream pull request: https://github.com/denysdovhan/spaceship-prompt/pull/521

Motivation and Context

The original rust section displays the verbose version by default. For example: v1.30.0-nightly, v1.30.0-beta or v1.30.0, depending on what branch you were using. (Stable not having a suffix)

This change makes non-verbose version numbers the default v1.30.0, and a config option to enable it only if wanted.

Types of changes

How Has This Been Tested?

I have tested using the ./tests/run.fish locally, as well as running logical snippets in my shell to make sure the syntax is correct.

Checklist:

Snuggle commented 5 years ago

OH! I totally forgot that fish already has a way to do this. Great thinking, @matchai!