1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-26 03:32:36 +00:00
starship/src/init
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
..
mod.rs feat: Add support for cygwin/msys2/git-bash evironment (#2020) 2021-01-07 19:13:57 +01:00
starship.bash fix(bash): Count jobs with for loop to fix MacOS count issue (#2250) 2021-01-31 22:56:06 +01:00
starship.fish perf(init): Use random for session-key in fish (#1904) 2021-01-04 18:36:50 +01:00
starship.ion feat: add error messaging (#1576) 2020-09-28 16:38:50 -04:00
starship.ps1 fix(pwsh): disable builtin venv prompt (#2090) 2021-01-07 18:16:02 +01:00
starship.zsh perf: use built-in EPOCHREALTIME env-var to compute cmd_duration for ZSH5+ (#1751) 2021-01-23 11:25:41 +01:00