Bill
b2e2330cb0
feat(git_status): added symbol for local repos up-to-date with remote. ( #2945 )
...
* git_status: added symbol for when local branch is up-to-date with upstream
* updated docs
* removed unused variable, moved location of config comment
* changed uptodate default to empty string, simplified and made safer
* added uptodate default line back into docstring
* fixed linting and formatting errors
* refactored uptodate to up_to_date, removed redundant else statement
2021-08-07 19:22:00 +02:00
Thomas O'Donnell
b7b7df9885
feat(package): Add ability to format the version ( #2959 )
...
Have added the ability to use format the version of the package using
the `version_format` option. While doing this I have also done some
refactoring of the module to remove the if/else if/... block and replace
it with an iterator. This should make fix some edge cases where versions
are not correctly picked up due to other files an example would be a
python project that has a `pyproject.toml` file but using the
`setup.cfg` for the package version. It should also make it easier to
make the order of the list configurable in the future.
2021-08-06 21:16:14 +02:00
dependabot[bot]
3ea425318b
build: bump shadow-rs from 0.6.3 to 0.6.4 ( #2963 )
...
Bumps [shadow-rs](https://github.com/baoyachi/shadow-rs ) from 0.6.3 to 0.6.4.
- [Release notes](https://github.com/baoyachi/shadow-rs/releases )
- [Commits](https://github.com/baoyachi/shadow-rs/compare/0.6.3...0.6.4 )
---
updated-dependencies:
- dependency-name: shadow-rs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-06 17:36:36 +02:00
David Herberth
cd6fc9cea0
feat(kubernetes): implements regex matching for context aliases ( #2883 )
2021-08-03 23:56:28 +02:00
Johannes Hoffmann
43a86f1a29
docs(preset): prevent cutting of the time ( #2870 )
...
* fix: prevent cutting of the time
* fix: apply suggestions from review and add space
Co-authored-by: user <user@localhost.localdomain>
2021-08-03 23:50:02 +02:00
Stephy
a9c79c5061
docs: Add italic
to Advanced Config styles ( #2943 )
...
Italic is mentioned in https://starship.rs/config/#style-strings but not https://starship.rs/advanced-config/#style-strings
2021-08-02 21:57:15 +02:00
dependabot[bot]
c7a690880d
build: bump which from 4.2.1 to 4.2.2 ( #2948 )
...
Bumps [which](https://github.com/harryfei/which-rs ) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/harryfei/which-rs/releases )
- [Commits](https://github.com/harryfei/which-rs/compare/4.2.1...4.2.2 )
---
updated-dependencies:
- dependency-name: which
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-02 13:20:56 -04:00
filip
b1db771baa
fix(rlang): module not working on MacOs ( #2880 )
...
Fix rlang module and refactor other modules to use new method.
2021-08-02 13:13:29 -04:00
dependabot[bot]
749593e614
build: bump semver from 1.0.3 to 1.0.4 ( #2949 )
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.3...1.0.4 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-02 13:11:31 -04:00
dependabot[bot]
4e1803d9bf
build: bump shadow-rs from 0.6.2 to 0.6.3 ( #2947 )
...
Bumps [shadow-rs](https://github.com/baoyachi/shadow-rs ) from 0.6.2 to 0.6.3.
- [Release notes](https://github.com/baoyachi/shadow-rs/releases )
- [Commits](https://github.com/baoyachi/shadow-rs/compare/0.6.2...0.6.3 )
---
updated-dependencies:
- dependency-name: shadow-rs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-02 13:11:08 -04:00
dependabot[bot]
16e0302f24
build: bump serde from 1.0.126 to 1.0.127 ( #2946 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.126 to 1.0.127.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-02 13:10:49 -04:00
dependabot[bot]
e405ad0454
build: bump which from 4.1.0 to 4.2.1 ( #2941 )
...
Bumps [which](https://github.com/harryfei/which-rs ) from 4.1.0 to 4.2.1.
- [Release notes](https://github.com/harryfei/which-rs/releases )
- [Commits](https://github.com/harryfei/which-rs/compare/4.1.0...4.2.1 )
---
updated-dependencies:
- dependency-name: which
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-30 14:01:12 -04:00
David Knaack
b0853876ea
fix(print-config): fix battery module and add missing modules ( #2930 )
...
* fix(print-config): fix battery and vcsh module handling
* sort, add test, add line_break module
2021-07-30 13:33:59 -04:00
dependabot[bot]
dc1c974287
build: bump serde_json from 1.0.65 to 1.0.66 ( #2940 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.65 to 1.0.66.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.65...v1.0.66 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-30 13:01:53 +02:00
David Knaack
66159cd940
feat(explain): quote module values ( #2931 )
2021-07-29 22:45:03 -04:00
David Knaack
af43aeefba
fix(clippy): fix new clippy lints ( #2939 )
2021-07-29 14:27:46 -04:00
dependabot[bot]
e34feee49b
build: bump serde_json from 1.0.64 to 1.0.65 ( #2936 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.64 to 1.0.65.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.64...v1.0.65 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 20:15:12 +02:00
Hugues Morisset
40cb667b9d
feat(status): Add pipestatus display in status module ( #2481 )
...
* feat: Add pipestatus display in status module
This MR is based on this one https://github.com/starship/starship/pull/370
* Documentation
* Add a test with map_symbol false
* Handle bash preexec pipestatus
* Add zsh support
* Add fish support
Thanks kidonng for the diff patch
* Rename sucess_symbol to success_symbol
2021-07-28 12:26:00 -04:00
Tom
2fa7f56cec
feat(package): Support package version from setup.cfg (python). ( #2890 )
...
* Support package version from setup.cfg (python).
Add an additional package version extraction function to parse
the 'version' attribute under the 'metadata' section in a python
package 'setup.cfg' file.
Also add similar tests from the poetry extraction function to test
the desired behaviour.
This adds a dependency on ConfigParser:
https://crates.io/crates/configparser .
* Clean up comments
* Use rust_ini over ConfigParser
* Add mention to setup.cfg version parsing in docs
2021-07-27 17:58:35 +02:00
Caleb Maclennan
82f68a0a39
ci: Use default token for release action ( #2920 )
...
See upstream: https://github.com/softprops/action-gh-release/pull/83
2021-07-27 09:18:54 -04:00
dependabot[bot]
35d9a9097b
build: bump open from 1.7.1 to 2.0.0 ( #2916 )
...
* build: bump open from 1.7.1 to 2.0.0
Bumps [open](https://github.com/Byron/open-rs ) from 1.7.1 to 2.0.0.
- [Release notes](https://github.com/Byron/open-rs/releases )
- [Changelog](https://github.com/Byron/open-rs/blob/main/changelog.md )
- [Commits](https://github.com/Byron/open-rs/compare/v1.7.1...v2.0.0 )
2021-07-26 11:12:10 -04:00
MeztliRA
ed60b69bcc
docs: fix shlvl module's symbol ( #2911 )
2021-07-26 11:02:47 -04:00
Shakil Bijabhai
80c5eca2ee
docs: fix typo for python in README.md ( #2909 )
2021-07-22 15:20:55 -04:00
dependabot[bot]
b233210e43
build: bump open from 1.7.0 to 1.7.1 ( #2903 )
...
Bumps [open](https://github.com/Byron/open-rs ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/Byron/open-rs/releases )
- [Changelog](https://github.com/Byron/open-rs/blob/main/changelog.md )
- [Commits](https://github.com/Byron/open-rs/compare/v1.7.0...v1.7.1 )
---
updated-dependencies:
- dependency-name: open
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-19 22:49:35 +02:00
Kid
b041adf4dc
docs(preset): add Hide Runtime Versions preset ( #2854 )
2021-07-19 20:30:24 +02:00
Andy Kipp
6271db4962
docs: Fix typo ( #2900 )
2021-07-19 20:23:49 +02:00
dependabot[bot]
1d435bf7e6
build: bump urlencoding from 2.0.0 to 2.1.0 ( #2904 )
...
Bumps [urlencoding](https://github.com/kornelski/rust_urlencoding ) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/kornelski/rust_urlencoding/releases )
- [Commits](https://github.com/kornelski/rust_urlencoding/commits )
---
updated-dependencies:
- dependency-name: urlencoding
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-19 20:22:33 +02:00
Alex L
cacb0a685f
docs: update git_commit default format ( #2898 )
2021-07-17 16:55:07 -04:00
David Knaack
31932c2990
fix(init): remove quotes in bash init ( #2893 )
2021-07-17 18:05:07 +02:00
Jeremy Schlatter
b1dcd5aecd
feat: add support for xonsh ( #2807 )
...
* feat: add support for xonsh
* xonsh: add STARSHIP_SESSION_KEY
* xonsh: implement STARSHIP_SESSION_KEY in xonsh
* docs: mention tcsh, elvish, and nu in more places
* xonsh: change STARSHIP_SESSION_KEY implementation
See https://github.com/starship/starship/pull/2807#discussion_r667064149
* xonsh: fix jobs implementation
* xonsh: do not silently discard stderr from starship
2021-07-16 15:25:01 -04:00
David Knaack
1eaf996a36
fix(windows): avoid inadvertly running exes from cwd ( #2885 )
...
On Windows when running commands with their name instead of the path with Command::new, executable with that name from the current working directory will be executed.
This PR replaces all instances of Command::new with a new create_command function which will first resolve any executable paths and avoid this issue.
2021-07-16 15:20:59 -04:00
Matan Kushner
e1fc137dc9
docs: add the terminator to the tip in env variable
2021-07-14 12:27:45 -04:00
dependabot[bot]
3d9c044e66
build: bump process_control from 3.0.1 to 3.1.0 ( #2881 )
...
Bumps [process_control](https://github.com/dylni/process_control ) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/dylni/process_control/releases )
- [Commits](https://github.com/dylni/process_control/compare/3.0.1...3.1.0 )
---
updated-dependencies:
- dependency-name: process_control
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-14 08:47:51 +02:00
dependabot[bot]
bbe76524db
build: bump urlencoding from 1.3.3 to 2.0.0 ( #2877 )
...
Bumps [urlencoding](https://github.com/kornelski/rust_urlencoding ) from 1.3.3 to 2.0.0.
- [Release notes](https://github.com/kornelski/rust_urlencoding/releases )
- [Commits](https://github.com/kornelski/rust_urlencoding/commits )
---
updated-dependencies:
- dependency-name: urlencoding
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-14 08:47:11 +02:00
dependabot[bot]
e16c1059e6
build: bump nix from 0.21.0 to 0.22.0 ( #2876 )
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/commits )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-14 08:46:45 +02:00
Matan Kushner
f64cfa6a98
chore(release): v0.56.0
2021-07-13 17:59:46 -04:00
Matan Kushner
1a6207d1f2
docs(i18n): new Crowdin updates ( #2879 )
2021-07-13 17:58:51 -04:00
filip
88ed0ed45a
feat(env_var): allow multiple instances ( #2797 )
...
Allows displaying multiple instances of the env_var module.
2021-07-13 17:06:08 -04:00
Chrissy LeMaire
c9249dbe0b
fix(pwsh): replace Get-Error with $error[0] ( #2873 )
...
Get-Error does not exist in all versions of PowerShell, and attempting to use it on machines where it does not exist pollutes $error. Someone may be tempted to use -ErrorAction Ignore but since the command does not exist, it still ends up in $error
This is a dual bug fix because it actually gets errors on all machines now and it does not pollute $error.
2021-07-13 16:31:14 -04:00
dependabot[bot]
0228a53c9f
build: bump mockall from 0.10.1 to 0.10.2 ( #2878 )
...
Bumps [mockall](https://github.com/asomers/mockall ) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/asomers/mockall/releases )
- [Changelog](https://github.com/asomers/mockall/blob/master/CHANGELOG.md )
- [Commits](https://github.com/asomers/mockall/compare/v0.10.1...v0.10.2 )
---
updated-dependencies:
- dependency-name: mockall
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-13 15:30:47 -04:00
Matan Kushner
cc32c7214b
docs(i18n): New Crowdin updates ( #2834 )
2021-07-10 17:15:23 -04:00
Alexander Gonzalez
9f337d15e7
feat: Add the git_metrics
module ( #2827 )
...
This PR adds a new module named git_metrics. It shows the added/deleted lines in the current git repository following the format: "[+$added_lines]($added_style) [-$deleted_lines]($deleted_style)".
2021-07-10 16:54:34 -04:00
David Knaack
9126d78d0e
fix(nu): use correct session key variable name ( #2874 )
2021-07-10 12:14:42 +02:00
Thomas O'Donnell
9e2da88d95
fix(git_status): Fix when the worktree != root dir ( #2831 )
...
Have updated the git_status module to work if the worktree has been
changed to a different directory than the repository root directory.
2021-07-05 17:19:09 -04:00
Matan Kushner
57a523e4c2
docs(nu): specify how to get nushell config path ( #2856 )
2021-07-04 21:59:40 -04:00
David Knaack
cea1a1ceb1
feat: add support for nu shell ( #2847 )
2021-07-04 15:32:58 -04:00
Kid
196cc8aa39
fix(dotnet): make default format consistent with other modules ( #2853 )
...
Add via prefix to dotnet modules' default format config.
2021-07-04 10:32:47 -04:00
filip
bdac951168
refactor(git_commit): small refactor to remove duplicate code ( #2752 )
2021-07-04 15:29:21 +02:00
Lorenzo Tucci
446ef03b4d
feat(docker_context): Use DOCKER_HOST and DOCKER_CONTEXT enviroment variables ( #2782 )
...
* feat(docker_context): Use DOCKER_HOST and DOCKER_CONTEXT enviroment variables for docker context
* Updating documentation for Docker context
2021-07-03 23:38:39 +02:00
David Knaack
a4a2adb0f8
fix(init): improve starship path escaping ( #2848 )
2021-07-03 23:30:27 +02:00