Luca Rinaldi
1558b22bb0
fix: multiple batteries support in the battery module ( #669 )
...
Closes #656
2019-12-03 11:48:50 -05:00
Thomas O'Donnell
edc62f4518
refactor: Refactor modules to use the exec_cmd util ( #676 )
...
Have refactored the golang, java, nodejs, python, ruby and username
modules to use the new `exec_cmd` util.
2019-12-02 17:42:55 -05:00
Luca Greco
337f213753
feat: Add the hg_branch module ( #569 )
2019-12-02 17:37:18 -05:00
Raidou
2a75a18eb1
fix: Fix panic when using fish-style pwd with unicode symbols ( #672 )
2019-11-29 00:02:22 -05:00
Thomas O'Donnell
45d977aa39
fix: Remove duplicated "v" in package versions ( #648 )
2019-11-20 09:16:07 -05:00
Matias Kotlik
135dddbb4f
feat: Add separator config to the memory module ( #603 )
2019-11-13 10:57:46 +09:00
Thomas O'Donnell
fc2f644237
fix: Add support for multiple Kubeconfig files ( #635 )
...
This adds support for having multiple Kubeconfig file set as part of the
`KUBECONFIG` env var.
2019-11-12 14:34:01 +09:00
Zhenhui Xie
5bb7467b56
refactor: Cleanup after module config refactor ( #630 )
2019-11-07 12:38:30 +09:00
Zhenhui Xie
a3d5ea3e43
refactor: Refactor git state module to use module config ( #605 )
2019-11-06 22:00:31 +09:00
Zhenhui Xie
48726fdd2a
refactor: Refactor nix_shell and java module to use module config ( #606 )
2019-11-06 21:59:12 +09:00
Thomas O'Donnell
42f6868e3f
feat: Enable the python module in virtual envs ( #584 )
...
This will enable the python module when a virtual environment has been
activated, this is detected via the `VIRTUAL_ENV` env var.
2019-11-02 20:10:21 +09:00
Cédric Da Fonseca
fa1267f12f
feat: Add configuration to set how much AWS profile info is shown ( #556 )
2019-11-02 20:08:54 +09:00
Matias Kotlik
e01c41eddf
style: Clean up Golang module ( #612 )
2019-11-01 10:53:28 +09:00
Brian Low
2710d02709
feat: Show git_status counts ( #434 )
...
The git_status module can show the count of files next to their respective symbols.
2019-10-26 15:20:20 +09:00
yuri
b7762a3e91
fix: Show Java version from OpenJ9 Java runtimes ( #507 )
...
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-25 10:00:05 +09:00
Zhenhui Xie
aa260899d4
fix: Use logical path instead of physical path when available ( #398 )
...
* Get pathbuf from logical path. (fixes #204 )
(also fixes #397 )
* fix: Update directory module so that use_logical_path will work properly
* Remove test directory::use_logical_and_physical_paths
* Fix merge errors
Co-authored-by: Matan Kushner <hello@matchai.me>
2019-10-24 19:37:44 +09:00
Thomas O'Donnell
e0c90a6502
refactor: Remove to remove unneeded mutability ( #577 )
...
Removed a couple of unneeded `mut`s that were pointed out by `cargo
check`.
2019-10-24 19:31:17 +09:00
Matias Kotlik
86bb923303
refactor: Refactor memory_usage module to use module config. ( #515 )
...
Also addresses a number of bugs:
- the percent sign not displaying correctly on some terminal emulators, including kitty
- changing the symbol in the configuration file didn't do anything
- swap being shown even if the system didn't have any
2019-10-21 00:26:04 +09:00
Thomas O'Donnell
7b9197a67e
fix: Fix the python module ignoring error codes ( #563 )
...
This is a quick fix to stop the python module from displaying error
messages that have been printed to stderr as the version.
2019-10-20 17:42:27 +09:00
Clément Joly
7e21f5c6b6
Refactor: Remove unnecessary parentheses in if condition ( #566 )
2019-10-20 17:36:02 +09:00
Barnaby Keene
2c7e01cd62
refactor: improve as-a-library usage by removing ArgMatches depe… ( #547 )
...
This removes ArgMatches from the Context struct and replaces it with a simple HashMap. This work is towards getting Starship in a better place for use as a library in other shells written in Rust so they don't need to use a command-line interface to invoke and configure things.
Contributes to #521
2019-10-20 17:26:27 +09:00
Zhenhui Xie
aadd8ecf2c
refactor: Refactor modules to use module config ( #514 )
2019-10-19 10:51:38 +09:00
Nguyễn Hồng Quân
27fad02837
fix: Separate Python version string and env name ( #548 )
2019-10-17 18:55:48 +09:00
David Knaack
6ab70796db
feat: Implement PowerShell support ( #470 )
2019-10-16 00:10:16 +09:00
Matias Kotlik
d2eef11148
refactor: Refactor git_branch module to use new module config ( #535 )
2019-10-15 20:48:53 +09:00
Zhenhui Xie
be2d5cf1cd
refactor: Rewrite cmd_duration, directory and env_var module to use module config ( #460 )
...
This PR is a batched rewrite of the following modules:
- cmd_duration
- directory
- env_var
2019-10-15 20:34:48 +09:00
Zach Mertes
5303fd7684
feat: Add configuration for hostname truncation ( #485 )
2019-10-15 01:22:25 +09:00
Keith Wade
10efe3e320
fix: Show leading slash when truncating from root ( #526 )
2019-10-15 00:12:43 +09:00
Thomas Lee
b3275d8ddf
feat: Show AWS region in aws
module ( #482 )
2019-10-15 00:05:03 +09:00
Thomas O'Donnell
cc68dec795
refactor: Refactor Go module to the new module config ( #525 )
2019-10-13 13:16:56 +09:00
Zhenhui Xie
57b38f17bb
refactor: Rewrite hostname, jobs and line_break module to use mo… ( #462 )
2019-10-10 17:21:52 +09:00
Keith Wade
9d48706360
feat: Implement timezone offset config option for the time module ( #463 )
...
This allows users to configure the time module to display time with a timezone offset other than just their local timezone.
2019-10-10 13:42:57 +09:00
Maarten Mulders
8058b51273
feat: Show Java module when build.sbt is present ( #505 )
...
* feat: Show Java icon and info when build.sbt detected
* docs: Mention build.sbt detection
2019-10-07 19:18:01 +09:00
Zhenhui Xie
044e10de1b
chore: Import shared types from super ( #492 )
...
Changes imports statements to make imports more uniform.
2019-10-05 16:13:03 -05:00
AppleTheGolden
7657af0680
feat: Add conda module ( #469 )
2019-10-05 13:25:25 -05:00
Thomas Lee
27e8c8f3eb
refactor: Rewrite time
module to use module config ( #483 )
...
- Config option renamed: `12hr` → `use_12hr`
2019-10-06 00:07:00 +09:00
Zhenhui Xie
bc9e44f45c
fix: Add disable configuration option to kubernetes module ( #491 )
2019-10-05 23:10:16 +09:00
Matan Kushner
f2e20bbea2
revert: chore: Remove logic for the disabled
option from modul… ( #489 )
...
This reverts commit 6c6e0ef1dd
.
2019-10-05 19:03:48 +09:00
Thomas O'Donnell
5a8777ff45
fix: Disable Kubernetes module by default ( #488 )
...
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-05 18:31:23 +09:00
Zhenhui Xie
6c6e0ef1dd
chore: Remove logic for the disabled
option from modules ( #486 )
2019-10-05 18:07:33 +09:00
Matan Kushner
05210b9510
refactor: Go from Rust workspaces to a package with nested packages ( #480 )
2019-10-04 22:30:46 +09:00
Zhenhui Xie
dd0b1a1aa2
refactor: Refactoring config ( #383 )
...
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-30 21:10:35 +09:00
Matan Kushner
9e9eb6a8ef
fix: Disable memory_usage by default ( #451 )
2019-09-30 16:04:49 +09:00
Tom Hotston
7588137b09
feat: Added ability for setting command duration prefix ( #414 )
2019-09-30 14:26:32 +09:00
Ryo Yamashita
b7dc6c5e96
fix: Prevent rust
module from installing toolchains ( #426 )
...
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-29 21:39:48 -05:00
Andrew Houts
0eafb2bde7
feat: add memory usage module ( #403 )
...
Adds a module to display system memory and swap usage.
2019-09-29 00:55:48 -05:00
yuri
63a45d01f9
feat: Use tilde for home_directory when under version control ( #439 )
2019-09-28 22:50:38 -05:00
yuri
d3fc66c0c5
feat: Add Environment Variable module ( #409 )
2019-09-26 17:30:58 +09:00
Thomas O'Donnell
b050c59708
feat: Add AWS module ( #419 )
...
Adds a module for displaying the current AWS profile based
on the AWS_PROFILE envar.
2019-09-25 21:55:47 -05:00
Matan Kushner
caaf3bc6a9
revert: Revert the command duration in ms feature ( #380 ) ( #425 )
...
Due to incompatibilities with the macOS date utility, we are
temporarily reverting this feature.
Refs: #c5e971a
2019-09-25 17:13:58 +09:00