Age | Commit message (Collapse) | Author |
|
|
|
|
|
This PR refactors config and puts configuration files for all modules in `configs/`.
|
|
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.
|
|
Adds a module to display system memory and swap usage.
|
|
|
|
Adds a module for displaying the current AWS profile based
on the AWS_PROFILE envar.
|
|
|
|
Implements a Java module which shows basic Java information when inside a Java project.
|
|
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.
|
|
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
|
|
|
|
Add a module which displays the current time in a format requested by
the user. Disabled by default.
|
|
Add parsing logic, config support, docs, and integration with other modules
for custom styling of each module.
|
|
- Adds the git_state module.
- Adds git_state to the default prompt order
- Updates the documentation to describe the git_state module
|
|
Have added the missing hostname module to the list of all modules.
|
|
So that it can be configured in the user's prompt
|
|
The 'battery' crate doesn't support Termux, so we are temporarily making the battery module optional.
|
|
listing flag (#197)
|
|
Solves the issue of cursor location confusion on bash and zsh (#110) . Solution: modify ANSIString and wrap non-printing characters with correct escape sequences.
|
|
Prompt can now switch characters in addition to switching character color. Add configuration options in so that users can do either, both, or neither.
|
|
|
|
This allows the directory truncation length to be configured. Previously, it was hard-coded to truncate to 3 parent directories.
|
|
- 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.
|
|
|
|
- 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
|
|
|
|
|