Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cut instead of grep for rustc version (spaceship-prompt#520)
The main advantage with using cut, over using grep is increased compatibility with other coreutils while being much more concise. This has been tested using GNU, BSD, Ripgrep, Busybox and Toybox coreutils — the latter three would have failed otherwise, due to a grep flag incompatibility.
- Loading branch information