summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
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-06refactor: Rewrite `time` module to use module config (#483)Thomas Lee
- Config option renamed: `12hr` → `use_12hr`
2019-10-05fix: Add disable configuration option to kubernetes module (#491)Zhenhui Xie
2019-10-05revert: chore: Remove logic for the `disabled` option from modul… (#489)Matan Kushner
This reverts commit 6c6e0ef1dd0474dde5a4d29300bbf80b60761d53.
2019-10-05fix: Disable Kubernetes module by default (#488)Thomas O'Donnell
Given the global nature of the Kubernetes module, the module has been disabled by default. The opportunity has also been taken to refactor the Kubernetes module to use the new config module.
2019-10-05fix: Fix module configuration loading (#487)Zhenhui Xie
2019-10-05chore: Remove logic for the `disabled` option from modules (#486)Zhenhui Xie
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-30fix: Disable memory_usage by default (#451)Matan Kushner
2019-09-30feat: Added ability for setting command duration prefix (#414)Tom Hotston
2019-09-29feat: Allow segment-specific styling (#378)Zhenhui Xie
Adds the ability to style individual segments in the prompt. The segment documentation is not fully updated in this commit and is waiting on a config refactor so that we can write unified docs.
2019-09-29fix: Prevent `rust` module from installing toolchains (#426)Ryo Yamashita
Prevents the rust module from installing rustup toolchains. Previously, the rust module would trigger rustup toolchain installations in some cases, leading to frozen prompts while rustup downloads/installs components. This commit changes the behaviour to avoid this.
2019-09-29feat: add memory usage module (#403)Andrew Houts
Adds a module to display system memory and swap usage.
2019-09-28feat: Use tilde for home_directory when under version control (#439)yuri
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-26refactor: Refactor config.rs to pure functional style (#427)Bijan Chokoufe Nejad
- Replaced for loop that iterates over mutable state with a fold expression - Unified the logging for the different accessors. The code is now screaming for further refactoring (get_module_config, get_as_bool, get_as_str, get_as_i64 and get_as_array are basically the same up to higher order functions but I didn't manage to get the life times right) - Increased test coverage (especially a test case for none not at the end) - Removed code comments that literally repeated the code in the next line (see e.g. https://blog.usejournal.com/stop-writing-code-comments-28fef5272752) - Added TODO for the problematic line that swallows the None and produces Some(Style::new()) (this also happened before but in a less obvious way)
2019-09-25revert: Revert the command duration in ms feature (#380) (#425)Matan Kushner
Due to incompatibilities with the macOS date utility, we are temporarily reverting this feature. Refs: #c5e971a
2019-09-24feat: Add ability for command duration in milliseconds (#380)Tom Hotston
2019-09-22feat: Add option to always show the username module (#408)Gimbar
2019-09-21refactor: Remove dead code in battery module (#405)Thomas O'Donnell
2019-09-20fix: Add display for unknown battery state (#316)谢祯晖
2019-09-20feat: add support for logical paths in directory (#366)Kevin Song
Adds the ability for starship to display the logical path instead of the physical path.
2019-09-20fix: fish_pwd option handles repeated directories properly (#399)Neil Kistner
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-16fix: Update Module::is_empty to check value of segments (#332)Neil Kistner
Previously, a set of empty segments would cause the module to print. This changes the logic of Module::is_empty to check that all the segments are empty instead.
2019-09-15feat: Add configuration for the `git_status` prefix and suffix (#367)Kutsuzawa Ryo
2019-09-15Enable the python module for tox files (#369)Thomas O'Donnell
Enable the python module if the current directory contains a `tox.ini` file.
2019-09-14perf: Lazy load files from directory (#335)Nick Young
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
2019-09-12chore: Rename integration_test to acceptance_test (#356)Matan Kushner
2019-09-12feat: Add support for italic styles (#354) (#358)Rob Warner
2019-09-12feat: Implement threshold based styling for battery module (#318)谢祯晖
2019-09-11fix: Fixups for #138 (#343)谢祯晖
- Fix unused imports in unit tests - Add accidently remove module "battery"
2019-09-10refactor: Separate shell initialization into files (#338)Kevin Song
Shell inits are now in a separate directory in the source code, with each shell getting its own script. Also adds a little DRY + commenting in init/mod.rs.
2019-09-10fix: Prepend to PROMPT_COMMAND in Bash init (#336)Daniel Illi-Zuberbühler
Bash init: do not overwrite PROMPT_COMMAND but prepend to it.
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-07feat: Add the ability to configure per-module color styles (#285)Kevin Song
Add parsing logic, config support, docs, and integration with other modules for custom styling of each module.
2019-09-07fix: Don't trigger an extension match on hidden files (#299)Gabriel de Perthuis
Addresses #52, closes #280.
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-05fix: Add missing module to list of modules (#294)Thomas O'Donnell
Have added the missing hostname module to the list of all modules.
2019-09-05feat: Add config for ahead/behind count of tracked branch (#281)Neil Kistner
Add a configuration option (show_sync_count) to the git_status module that will show/hide the counts ahead/behind of the tracked branch. Currently have this default to false, and would opt-in to show this information.
2019-09-04ci: Migrate CI from Azure Pipelines to GitHub Actions (#233)Matan Kushner
Migrated CI from Azure Pipelines to GitHub Actions. Until the release process is figured out in Actions, we'll stick to using Azure pipelines for releases.
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-09-04fix: Be more restrictive with bash init fallback (#278)Nick Young
This should improve compatibility with "Git Bash" with Git for Windows by using psub+source init for all bash shells v4.1 and newer.
2019-09-03Change ZSH init to use jobstates for num jobs (#252)Kevin Song
2019-09-02feat: Respect status.showUntrackedFilesFrancisco Lopes
2019-09-02feat: added truncation_length/symbol to git_branch (#268)Titouan Vervack
Git branches can become very long (e.g. gitlab auto-generated branch names), thus it would be nice to be able to truncate them to keep your prompt lenght in line. This patch adds two new options to the git_branch module: * truncation_length: The amount of graphemes to of a gitbranch to truncate to * truncation_symbol: The symbol that should be used to indicate that a branch name was trunctated To be able to correctly work with UTF-8 graphemes, unicode-segmentation was added as a dependency.