1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-24 10:54:49 +00:00
starship/src
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
..
configs feat(vagrant): Add support for Vagrant (#1812) 2021-01-30 12:05:16 +01:00
formatter refactor: simplify StringFormatter::new 2021-01-22 11:50:12 -05:00
init fix(bash): Count jobs with for loop to fix MacOS count issue (#2250) 2021-01-31 22:56:06 +01:00
modules feat(vagrant): Add support for Vagrant (#1812) 2021-01-30 12:05:16 +01:00
test test: enable logging in tests (#2151) 2021-01-16 13:25:58 +01:00
bug_report.rs build: Add additional build information to version and bug report (#2124) 2021-01-22 20:14:51 +01:00
config.rs fix(config): log as error if failure to read config wasn't caused by NotFound (#1993) 2020-12-13 16:24:48 +01:00
configure.rs feat(command): add 'toggle' command (#1917) 2021-01-07 19:04:06 +01:00
context.rs refactor: apply more clippy lints 2021-01-22 11:50:12 -05:00
lib.rs build: Add additional build information to version and bug report (#2124) 2021-01-22 20:14:51 +01:00
logger.rs test: enable logging in tests (#2151) 2021-01-16 13:25:58 +01:00
main.rs build: Add additional build information to version and bug report (#2124) 2021-01-22 20:14:51 +01:00
module.rs feat(vagrant): Add support for Vagrant (#1812) 2021-01-30 12:05:16 +01:00
print.rs refactor: simplify print::handle_module 2021-01-22 11:50:12 -05:00
segment.rs chore: remove unused name from Segment and remove some of the misleading underscores (#1584) 2020-08-16 22:16:05 -04:00
utils.rs feat(vagrant): Add support for Vagrant (#1812) 2021-01-30 12:05:16 +01:00