summaryrefslogtreecommitdiffstats
path: root/src/modules/mod.rs
AgeCommit message (Collapse)Author
2020-01-26test(nodejs): Port nodejs module tests from E2E to integraton (#867)Matan Kushner
Replaces the existing nodejs module end-to-end tests with integration tests that don't require preinstalled environmental dependencies. - Moved the tests to the same file as the module they test - Created a render_module utility function for rendering modules within tests - Removed Node.js installation during CI setup - Add Shell to Context to allow for tests to not run shell-specific code
2020-01-25feat: add Haskell Stack support (#546)Andrew Prokhorenkov
Add a Haskell Stack module when a stack.yaml file is detected
2020-01-07fix: Correct module description text for git_commit (#812)Hendrik Rombach
2020-01-01feat: Add the `starship explain` command (#699)Jon Grythe Stødle
This adds the explain argument to Starship, which explains what the printed modules in the prompt are.
2019-12-08feat: Implement terraform module with workspace and version (#644)wdullaer
2019-12-06feat: Add git_commit module (#673)Qingping Hou
2019-12-05feat: Add PHP version module (#244)Stephen Ball
2019-12-02feat: Add the hg_branch module (#569)Luca Greco
2019-10-25fix: Show Java version from OpenJ9 Java runtimes (#507)yuri
This PR tries to improve the version detection across multiple Java VM vendors. The module captures both STDOUT and STDERR outputs of the java -Xinternalversion call. Eclipse OpenJ9, Azul Zulu, SapMachine, Amazon Corretto and GraalVM outputs are unit tested now.
2019-10-19refactor: Refactor modules to use module config (#514)Zhenhui Xie
2019-10-05chore: Import shared types from super (#492)Zhenhui Xie
Changes imports statements to make imports more uniform.
2019-10-05feat: Add conda module (#469)AppleTheGolden
2019-10-04refactor: Go from Rust workspaces to a package with nested packages (#480)Matan Kushner
2019-09-30refactor: Refactoring config (#383)Zhenhui Xie
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-29feat: add memory usage module (#403)Andrew Houts
Adds a module to display system memory and swap usage.
2019-09-26feat: Add Environment Variable module (#409)yuri
2019-09-25feat: Add AWS module (#419)Thomas O'Donnell
Adds a module for displaying the current AWS profile based on the AWS_PROFILE envar.
2019-09-19feat: Add Java Module (#314)Kuba Clark
Implements a Java module which shows basic Java information when inside a Java project.
2019-09-10feat: Implement the prompt module for time (#138)John Letey
Add a module which displays the current time in a format requested by the user. Disabled by default.
2019-09-05feat: Adds Git State module for showing "REBASING 2/3", etc. (#276)Nick Young
- Adds the git_state module. - Adds git_state to the default prompt order - Updates the documentation to describe the git_state module
2019-09-04feat: add hostname module (#286)Andrew Houts
Add a hostname module as requested by @chipbuster. Displays the system hostname as provided by gethostname.
2019-08-26make the battery module optional for now (#234)Bruno Bigras
The 'battery' crate doesn't support Termux, so we are temporarily making the battery module optional.
2019-08-25Add nix-shell support (#173)Bruno Bigras
2019-08-20fix: Change panicking on unknown module to error print and support module ↵Saurav Sharma
listing flag (#197)
2019-08-13feat: implement the ruby module (#131)André Zanellato
2019-08-13fix: Fix issues with nodejs and golang configuration (#146)Matan Kushner
* fix: Give all modules a single name * test: Add missing config tests for nodejs and golang * test: Rename dir to directory
2019-08-12feat: Implement the prompt module for jobs (#85)John Letey
2019-08-08feat: implement timer module (#118)Kevin Song
Implement a timer module that takes a commandline argument, the number of seconds the last job took to complete, and displays it if appropriate. Alters shell initialization files to compute this number using date +%s where needed. Adds a config section to configure minimum amount of time before timer is shown (default is 2s)
2019-07-19docs: Add vuepress with initial docs (#99)Tiffany Le-Nguyen
Co-authored-by: Tiffany Le-Nguyen <tlenguyen@expedia.com> Co-authored-by: Matan Kushner <hello@matchai.me>
2019-07-02feat: Add a `disabled` configuration option for modules (#86)Matan Kushner
• Add support for the disabled configuration option This will allow you to selectively disable modules that you don't want or need. 😄 • Overwrite starship configuration file path with STARSHIP_CONFIG environment variable • Write tests for the two configuration options that are available
2019-06-10Add support for prompt configuration (#62)Matan Kushner
- Create `Config` struct that is added to `Context` when initialized - Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`) - `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
2019-05-22feat: Add battery module(#63)Matan Kushner
2019-05-19feat: Implement the prompt module for username (#56)Youssef Habri
2019-05-13Implement the git status module (#45)Matan Kushner
2019-05-11Add Go version module (#44)John Letey
2019-05-01Refactor segments into modules (#40)Matan Kushner
2019-05-01Add the package version segment (#35)John Letey
2019-04-26Add the Git branch segment (#32)Matan Kushner
Added - Repository to Context for reuse in directory and git_branch - git_branch to prompt Changed - Made segments bold to match spaceship
2019-04-25Add Python version segment (#23)John Letey
2019-04-21feat: Add Rust version segment (#15)Tim Mulqueen
2019-04-19Use "context" to contain run details (#14)Matan Kushner
* Create "context" to contain run details * Use context in tests and benchmarks
2019-04-15Add integration tests (#6)Matan Kushner
### Changed - Added current_dir param to segments to make them more testable - Moved all existing integration tests to a `tests/` dir ### Added - A whole bunch of new integration tests
2019-04-12Make segments optionalsMatan Kushner
2019-04-12Add builder pattern for segmentMatan Kushner
2019-04-11More progress in Node sectionMatan Kushner
2019-04-10Begin writing Node sectionMatan Kushner
2019-04-04Add stringify_segment rustdocMatan Kushner
2019-04-04Rename segementsMatan Kushner
2019-04-04Add line_sep sectionMatan Kushner
2019-04-04Add dir section with home truncationMatan Kushner