Age | Commit message (Collapse) | Author |
|
Changes imports statements to make imports more uniform.
|
|
|
|
- Config option renamed: `12hr` → `use_12hr`
|
|
|
|
This reverts commit 6c6e0ef1dd0474dde5a4d29300bbf80b60761d53.
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
- 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)
|
|
Due to incompatibilities with the macOS date utility, we are
temporarily reverting this feature.
Refs: #c5e971a
|
|
|
|
|
|
|
|
|
|
Adds the ability for starship to display the logical path instead of the physical path.
|
|
|
|
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.
|
|
|
|
Enable the python module if the current directory contains a `tox.ini`
file.
|
|
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
|
|
|
|
|
|
|
|
- Fix unused imports in unit tests
- Add accidently remove module "battery"
|
|
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.
|
|
Bash init: do not overwrite PROMPT_COMMAND but prepend to it.
|
|
Add a module which displays the current time in a format requested by
the user. Disabled by default.
|
|
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.
|
|
Add parsing logic, config support, docs, and integration with other modules
for custom styling of each module.
|
|
Addresses #52, closes #280.
|
|
- 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.
|
|
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.
|
|
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.
|
|
Add a hostname module as requested by @chipbuster.
Displays the system hostname as provided by gethostname.
|
|
This should improve compatibility with "Git Bash" with Git for Windows by
using psub+source init for all bash shells v4.1 and newer.
|
|
|
|
|
|
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.
|