summaryrefslogtreecommitdiffstats
path: root/src/print.rs
AgeCommit message (Collapse)Author
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-11fix: Fixups for #138 (#343)谢祯晖
- Fix unused imports in unit tests - Add accidently remove module "battery"
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-09fix: Lazy load git repo and only run module if not disabled (#306)Neil Kistner
A couple of optimizations are done in this PR. One, we now will check config ahead of time to see if a module is disabled before running any module code. Also, we won't try to discover a git repository unless the module requests access to it.
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-21Add ruby to default module ordering (#217)Kevin Song
2019-08-20fix: Change panicking on unknown module to error print and support module ↵Saurav Sharma
listing flag (#197)
2019-08-18feat: Add configuration for reordering the prompt module and disabling ↵Saurav Sharma
default order (#171) Adds functionality for reordering the prompt module through the use of the prompt_order configuration option in starship.toml
2019-08-13fix: Fix exception caused by the golang moduleMatan Kushner
Fixes #148
2019-08-12feat: Implement the prompt module for jobs (#85)John Letey
2019-08-11fix: Move the battery to the newline before character (#139)Matan Kushner
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-27feat: Add configuration for add_newline (#116)Matan Kushner
- Replace TableExt with a Config trait that extends toml::value::Table Add configuration for add_newline - add_newline is a root-level configuration value. When set to false, the initial newline before the prompt is removed.
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-06Refactor integration tests (#71)Matan Kushner
- Create subcommands to be able to print modules independently - `starship prompt` will print the full prompt - `starship module <MODULE_NAME>` will print a specific module e.g. `starship module python` - Added `--path` flag to print the prompt or modules without being in a specific directory - Added `--status` flag to provide the status of the last command, instead of requiring it as an argument - Refactored integration tests to be end-to-end tests, since there was no way in integration tests to set the environment variables for a specific command, which was required for the `username` module - Moved e2e tests to `tests/testsuite` to allow for a single binary to be built - Tests will build/run faster - No more false positives for unused functions - Added tests for `username` - Removed codecov + tarpaulin 😢
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-09Parallelize prompt modules (#46)Matan Kushner
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-15Fix bug in path truncationMatan Kushner
Paths with 3 components would truncate to 2 despite the truncation length begin set to 3.
2019-04-12Make segments optionalsMatan Kushner
2019-04-12Use copy to return segmentMatan Kushner
2019-04-12Add builder pattern for segmentMatan Kushner
2019-04-12Cleanup around newlineMatan Kushner
2019-04-11More progress in Node sectionMatan Kushner
2019-04-10Begin writing Node sectionMatan Kushner
2019-04-08Add a new line before the promptMatan Kushner
2019-04-07A bit of tidying upMatan Kushner
2019-04-04Add stringify_segment rustdocMatan Kushner
2019-04-04Rename segementsMatan Kushner
2019-04-04Add line_sep sectionMatan Kushner
2019-04-04Add basic benchmarksMatan Kushner
2019-04-04Add dir section with home truncationMatan Kushner
2019-04-04Move Segment struct to modulesMatan Kushner