David Knaack
edb17bc5c7
ci: fix changelog generation ( #2267 )
2021-02-04 20:29:41 -05:00
dependabot-preview[bot]
57071ac53f
build(deps): bump quick-xml from 0.20.0 to 0.21.0
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/tafia/quick-xml/releases )
- [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md )
- [Commits](https://github.com/tafia/quick-xml/compare/v0.20.0...v0.21.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-04 06:02:10 +00:00
Dan Tsekhanskiy
2bc8a7172d
docs(status): Remove status_ prefix from status module variables ( #2260 )
...
* Remove status_ prefix from status module variables
* Revert "Remove status_ prefix from status module variables"
This reverts commit f4c6e9ced3
.
* docs: Remove status_ prefix from status module variables
2021-02-03 18:52:15 +01:00
Matan Kushner
0558b38e3f
chore(release): v0.50.0
2021-02-02 14:59:42 -05:00
KOVACS Krisztian
c9c3455e23
fix(windows): fix windows terminal ANSI escape sequences ( #2258 )
...
* fix(windows): don't inherit stdin when executing commands
On Windows, inheriting stdin from starship might lead to leaking the
console reference to the command we're executing. `id.exe` supplied with
Git has been observed to disable the ENABLE_VIRTUAL_TERMINAL_PROCESSING
console flag if it inherits stdin -- leading to Windows Terminal not
processing ANSI escape sequences.
This change fixes #2254 by explicitly disabling stdin inheritance.
The fix was suggested by David Knaack.
* fix(username): don't call `id -u` on Windows
This was done to check if user is root by comparing the UID to 0. Windows
does not have a concept of UID 0 anyway, so it's pointless to call `id.exe`
(which is installed with MSYS2 or Git, for example).
2021-02-02 14:58:18 -05:00
David Knaack
22dc8b842e
feat: add support for elvish shell ( #1725 )
...
* feat: add support for elvish shell
* improve doc
* elvish 0.15 is out
* fix example init
* update systax for 0.15 stable
* udpate second init example too
* remove warning from swift module
* add warning to status module docs
* prefix elvish version with v
2021-02-02 12:59:55 +01:00
dependabot-preview[bot]
10d5a7034b
build(deps): bump shadow-rs from 0.5.23 to 0.5.24
...
Bumps [shadow-rs](https://github.com/baoyachi/shadow-rs ) from 0.5.23 to 0.5.24.
- [Release notes](https://github.com/baoyachi/shadow-rs/releases )
- [Commits](https://github.com/baoyachi/shadow-rs/compare/0.5.23...0.5.24 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-01 05:39:55 +00:00
Rich Lafferty
3127a9aa87
fix(bash): Count jobs with for loop to fix MacOS count issue ( #2250 )
...
In #1897 we replaced a 'wc -l' with a bash-native job counter, but
subsequently discovered that bash on MacOS folds '<<<' output into
a single line, preventing line counting.
A for loop works around that problem, is still bash-native, and works
on Linux as well.
While we're at it, also removed the need for command substitution and
an echo by doing the work directly on NUM_JOBS.
Fixes #2241 .
2021-01-31 22:56:06 +01:00
David Knaack
383d2df580
build: add x86_64 freebsd build ( #2233 )
2021-01-30 12:50:38 +01:00
Furkan Türkal
9e21e3cf5f
feat(vagrant): Add support for Vagrant ( #1812 )
...
Signed-off-by: Dentrax <furkan.turkal@hotmail.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2021-01-30 12:05:16 +01:00
Matan Kushner
9b02a9742a
chore: update issue template config to correctly use "Q&A" category
2021-01-29 22:03:57 -05:00
David Knaack
6bb79039a3
fix(install): use correct arch name in 32-bit test ( #2234 )
2021-01-29 16:54:36 -05:00
Matan Kushner
511bd853d6
chore: update Crowdin PR title
2021-01-29 16:53:32 -05:00
Matan Kushner
7df794efa8
ci: continue release on error ( #2237 )
2021-01-29 16:15:59 -05:00
Matan Kushner
317226b9a7
chore(release): v0.49.0
2021-01-29 12:40:04 -05:00
dependabot-preview[bot]
a267d2da58
build(deps): bump log from 0.4.13 to 0.4.14
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.13 to 0.4.14.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.13...0.4.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-27 05:36:41 +00:00
dependabot-preview[bot]
143e4c22b9
build(deps): bump rand from 0.8.2 to 0.8.3
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-27 05:28:53 +00:00
Matan Kushner
6afd9ecaf3
docs(i18n): add Vietnamese doc translations
2021-01-26 17:25:25 -05:00
Matan Kushner
bea79619e0
docs(i18n): New Crowdin updates ( #2108 )
2021-01-26 17:07:13 -05:00
Thomas O'Donnell
762ad12698
test(docker_context): Add basic tests to module ( #2205 )
...
* test(docker_context): Add basic tests to module
This adds some basic tests to the docker_context module.
* PR suggestion
2021-01-26 22:46:17 +01:00
Aki
e23f0f7605
docs: update license to include 2021 ( #2207 )
2021-01-26 22:43:20 +01:00
matoruru
b1efe30bbe
docs(status): fix the format string to match the default ( #2211 )
2021-01-26 22:42:41 +01:00
David Knaack
857d536488
build: add aarch64 windows build ( #2213 )
2021-01-26 22:40:48 +01:00
dependabot-preview[bot]
3c31c4b99d
build(deps): bump serde from 1.0.122 to 1.0.123
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.122 to 1.0.123.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-26 05:37:15 +00:00
dependabot-preview[bot]
f673487638
build(deps): bump sys-info from 0.7.0 to 0.8.0
...
Bumps [sys-info](https://github.com/FillZpp/sys-info-rs ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/FillZpp/sys-info-rs/releases )
- [Changelog](https://github.com/FillZpp/sys-info-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/FillZpp/sys-info-rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-26 05:30:38 +00:00
dependabot-preview[bot]
a2058b791a
build(deps): bump serde from 1.0.120 to 1.0.122
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.120 to 1.0.122.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.122 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 05:59:49 +00:00
dependabot-preview[bot]
70a72c465c
build(deps): bump process_control from 3.0.0 to 3.0.1
...
Bumps [process_control](https://github.com/dylni/process_control ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/dylni/process_control/releases )
- [Commits](https://github.com/dylni/process_control/compare/3.0.0...3.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 05:49:16 +00:00
dependabot-preview[bot]
9124a5ed72
build(deps): bump git2 from 0.13.16 to 0.13.17
...
Bumps [git2](https://github.com/rust-lang/git2-rs ) from 0.13.16 to 0.13.17.
- [Release notes](https://github.com/rust-lang/git2-rs/releases )
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.13.16...0.13.17 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 05:37:27 +00:00
Rodrigo Suárez
ca36d15acd
feat(directory): Add home directory symbol ( #2198 )
...
* feat(directory): Add home directory symbol
* Replace HOME_SYMBOL constant as a config variable
2021-01-24 22:50:37 +01:00
David Knaack
b2e8252785
refactor(git_status): simplify git status with once-cell ( #2150 )
...
I simplified the code in the git status module by moving everything from RwLock<_> to OnceCell<_>. I think this should also get rid of any remaining race conditions that remained after #1777 .
2021-01-24 15:19:22 -05:00
Thomas O'Donnell
a67bf5b34f
docs(terraform): Make version perf issue obvious ( #2107 )
...
This intends to make the performance issue with the terraform version
more obvious.
2021-01-23 15:17:51 +01:00
Gautham Warrier
5eacd3abee
perf: use built-in EPOCHREALTIME env-var to compute cmd_duration for ZSH5+ ( #1751 )
...
We currently invoke `starship time` in a sub-shell to compute time, which is non-performant. By using $EPOCHREALTIME,
which is an inbuilt env-var in ZSH5, we can get better performance. This commit only targets ZSH5+ and maintains the
old behaviour.
2021-01-23 11:25:41 +01:00
Rust大闸蟹
bcaf835321
build: Add additional build information to version and bug report ( #2124 )
...
* fix https://github.com/starship/starship/issues
* cargo fmt
* upgrade shadow-rs 0.5.6
* upgrade shadow-rs
* update
* complet bug_report infomation
* cargo fmt
* upgrade shadow-rs 0.5.11
* upgrade shadow-rs 0.5.14
* fixed:https://github.com/starship/starship/pull/2124#discussion_r559076634
fixed:https://github.com/starship/starship/pull/2124#discussion_r559076918
* add long_version
* upgrade shadow-rs 0.5.19; adaptate clap version() use by shadow-rs clap_version()
* fix unit test error
* fix test error
* upgrade shadow-rs 0.5.22
* upgrade shadow-rs 0.5.23
2021-01-22 20:14:51 +01:00
dependabot-preview[bot]
5471007db9
build(deps): bump rust-ini from 0.16.0 to 0.16.1
...
Bumps [rust-ini](https://github.com/zonyitoo/rust-ini ) from 0.16.0 to 0.16.1.
- [Release notes](https://github.com/zonyitoo/rust-ini/releases )
- [Commits](https://github.com/zonyitoo/rust-ini/compare/v0.16.0...v0.16.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-22 17:33:39 +00:00
Moritz Vetter
4e7f73da50
perf(zig): Lazy eval zig ( #2187 )
...
* perf(zig): evaluate version lazily
* fix(zig): update format string; update tests
* refact(zig): remove redundant clone and put everything to do with version eval into match statement
* tiny optimization
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2021-01-22 18:08:36 +01:00
Moritz Vetter
212dbc4e6b
perf(ocaml): evaluate version lazily; adjust format string; update test ( #2188 )
...
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-22 18:08:04 +01:00
Moritz Vetter
16b8cbfdb8
perf(perl): Lazy eval perl ( #2189 )
...
* perf(perl): evaluate version lazily
* fix(perl): update format string; update tests
* refact(perl): run rustfmt
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-22 18:07:03 +01:00
Moritz Vetter
d10a83ce6b
perf(php): Lazy eval php ( #2190 )
...
* perf(php): evaluate version lazily
* fix(php): update format string; update tests
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-22 18:03:18 +01:00
Moritz Vetter
60be1e9540
Perf(purescript): Lazy eval purescript ( #2191 )
...
* perf(purescript): evaluate version lazily
* fix(purescript): update format string; update tests
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-22 18:01:54 +01:00
Alexandru Macovei
499e0357b0
refactor: apply more clippy lints
2021-01-22 11:50:12 -05:00
Alexandru Macovei
c8a8086930
refactor: simplify print::handle_module
2021-01-22 11:50:12 -05:00
Alexandru Macovei
3e6b2713b2
refactor: simplify StringFormatter::new
2021-01-22 11:50:12 -05:00
dependabot-preview[bot]
7cb1b7e373
build(deps): bump git2 from 0.13.15 to 0.13.16
...
Bumps [git2](https://github.com/rust-lang/git2-rs ) from 0.13.15 to 0.13.16.
- [Release notes](https://github.com/rust-lang/git2-rs/releases )
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.13.15...0.13.16 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-22 05:28:42 +00:00
David Knaack
132be11790
build: add builds for various targets ( #2137 )
...
* build: add builds for various targets
* fix typo
Co-authored-by: Matan Kushner <hello@matchai.me>
Co-authored-by: Matan Kushner <hello@matchai.me>
2021-01-21 23:17:02 +01:00
Moritz Vetter
00afc82049
perf(kotlin): Lazy eval kotlin ( #2186 )
...
* perf(kotlin): evaluate version lazily
* fix(kotlin): update format string; update tests
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-21 23:01:30 +01:00
Moritz Vetter
98b89b9432
perf(lua): Lazy eval lua ( #2185 )
...
* perf(lua): evaluate version lazily
* fix(lua): update format string
* test(lua): update tests
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-21 23:00:12 +01:00
Thomas O'Donnell
5cf1c8a7bd
perf(utils): Add timeout to utils::exec_cmd
( #2171 )
...
* perf(utils): Add timeout to `utils::exec_cmd`
This adds a timeout to any command executed using the `utils::exec_cmd`.
The initial time limit is hard coded to 500ms but if required we can
make this configurable. Have also switched the tests to be a bit more
granular on which systems they are ignored.
* Terminate the processes if they timeout
2021-01-21 22:59:14 +01:00
Moritz Vetter
b5fd517972
perf(nodejs): evaluate nodejs format string lazily ( #2160 )
...
* fix(nodejs): update format string
* test(nodejs): adjust tests to new format strings
* fix(nodejs): use once_cell's Lazy to implement hassleless lazy execution
* chore(nodejs): run rustfmt
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-20 19:03:48 +01:00
David Knaack
8302a3ccb4
perf(custom): evaluate command lazily ( #2173 )
2021-01-20 19:01:49 +01:00
David Knaack
bb160d9207
perf(elixir): evaluate version lazily ( #2172 )
2021-01-20 18:59:21 +01:00