Closed ndonfris closed 5 months ago
Fixes and tests issues in src/utils/completions/startup-config.ts, when the user does not have any defined abbr, alias, or event. This patch should prevent piping empty outputs from any command above, to their trailing formatting commands.
abbr
alias
event
- abbr | string split ' -- ' -n -m1 -f2 | string unescape + [ (abbr | count) -eq 0 ] || abbr | string split ' -- ' -n -m1 -f2 | string unescape
yarn test-hook
pre-push
added private test-data helper function, to spawn in a minimal fish profile. Relies on the following command:
spawn
fish --no-config
Why?
Fixes and tests issues in src/utils/completions/startup-config.ts, when the user does not have any defined
abbr
,alias
, orevent
. This patch should prevent piping empty outputs from any command above, to their trailing formatting commands.Other changes
yarn test-hook
in package.jsonpre-push
hookadded private test-data helper function, to
spawn
in a minimal fish profile. Relies on the following command: