Commit graph

3507 commits

Author SHA1 Message Date
Jan De Dobbeleer d9d2430ae9 fix: wait for command to complete
without wait(), the *ProcessState is nil, meaning we can't access
the ExitCode(). On Windows, calling wait() introduces a timeout
which makes things run slower, which is why we only call wait()
in case of an error. That should not be the main use-case.

relates to #285
2020-12-31 13:29:42 +01:00
TravisTX 7e7483501c fix: mapped_locations schema definition 2020-12-31 13:22:16 +01:00
Laurent Nullens 1bc52c3c48 fix: exit code always equal 0
The exit code was not captured correctly since the move to the new bootstrap system.  
It never displays the actual exit code.
2020-12-31 12:06:59 +01:00
Jan De Dobbeleer 4c771d3e15 fix: add timeout to http requests
this caused a serious delay on windows
2020-12-31 09:47:32 +01:00
Jan De Dobbeleer 5fa33f4c4f fix: use commandError on cmd failure
relates to #285
2020-12-31 09:06:13 +01:00
Jan De Dobbeleer e0a4482d4b fix: parse error message when running command 2020-12-30 20:10:42 +01:00
TravisTX 23eb73cd69 fix: fix lastexitcode 2020-12-30 16:30:51 +01:00
TravisTX c9075268ad refactor: switch to original jsonc library 2020-12-30 08:36:13 +01:00
Jan De Dobbeleer 0e7849cde3 fix: msys2 compatibility
resolves #281
2020-12-29 21:53:07 +01:00
lnu 9013a5b3d4 chore: doc updated(Get an editor) 2020-12-29 21:47:04 +01:00
lnu 36e69a1f7e chore: launch.json args syntax 2020-12-29 21:47:04 +01:00
lnu d0055682ad chore: set golangci-lint as linter
Same as in the CI process
2020-12-29 21:47:04 +01:00
lnu ed8fb232ce chore: recommended vscode extensions
Go, test explorer, github, prettier, markdwon all-in-one and markdownlint
2020-12-29 21:47:04 +01:00
lnu 0fcf7cc8be feat: replace debug information with a new layout
Similar as Starship timings command
2020-12-29 21:47:04 +01:00
TravisTX eefc689ec9 docs: fix json 2020-12-27 22:59:16 +01:00
Laurent Nullens 8c812812ee fix: *env.args.Shell not set in getShellName(cache never used)
*env.args.Shell was never set in getShellName.
2020-12-27 22:38:03 +01:00
Jan De Dobbeleer b4d23a4716 chore: adjust shell arguments 2020-12-27 18:23:40 +01:00
Jan De Dobbeleer 9e7d901fb6 feat: set console title with template 2020-12-27 18:23:40 +01:00
Jan De Dobbeleer b427a0e8a4 refactor: cache shell name 2020-12-27 18:23:40 +01:00
Jan De Dobbeleer 85ee0bb0c0 refactor: typo in EOL 2020-12-27 18:23:40 +01:00
Jan De Dobbeleer d9cf3b0e40 fix: only clear eol on Powershell
related to #277
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer 59282c088d refactor: separate ansi formats 2020-12-27 18:23:40 +01:00
Jan De Dobbeleer e9c65948c1 refactor: separate consoletitle logic 2020-12-27 18:23:40 +01:00
Laurent Nullens 969b54420a fix: avoid emitting empty ansi color codes
When there's no color override an empty string is emitted.
The fix reduces the emitted output by 40% approximatively with the default theme(1604 -> 1138).
2020-12-27 11:39:05 +01:00
Laurent Nullens 077b839a9d fix: .gitignore updated with the new /src structure
/oh-my-posh3 set to /src/oh-my-posh3
2020-12-27 08:11:58 +01:00
Jan De Dobbeleer 6cef6b8550 revert: remove config from release 2020-12-26 14:49:12 +01:00
Jan De Dobbeleer f0fd885d95 chore: include refactor/revert in changelog 2020-12-26 14:44:11 +01:00
Jan De Dobbeleer 973d7e6369 chore: add enhancement to non-stale issues 2020-12-26 14:20:10 +01:00
Jan De Dobbeleer 1e71ea341a chore: add commitlint type config 2020-12-26 14:20:10 +01:00
Jan De Dobbeleer ac5dd0f76b refactor: use personal fork of jsonc 2020-12-26 14:20:10 +01:00
Jan De Dobbeleer 3c7b3447d5 refactor: upgrade distatus/battery 2020-12-26 14:20:10 +01:00
Jan De Dobbeleer 9a47ed71b7 refactor: upgrade gookit/color 2020-12-26 14:20:10 +01:00
Jan De Dobbeleer 1e330b90ee refactor: use go-ps from origin 2020-12-26 14:20:10 +01:00
TravisTX 1cfed78576 feat: allow custom folder separator for all styles 2020-12-26 08:30:29 +01:00
Jan De Dobbeleer c4cb6772e9 chore: adjust contributing docs 2020-12-25 20:48:14 +01:00
Jan De Dobbeleer ed2eac8e12 feat: adjust source code layout 2020-12-25 20:11:24 +01:00
Jan De Dobbeleer ef51c9d3c5 chore: extend contributing docs 2020-12-25 20:11:24 +01:00
Jan De Dobbeleer e27b21bf23 chore: add get started contributing guide 2020-12-25 14:54:36 +01:00
Jan De Dobbeleer 3993522019 chore: validate go mod tidy or pr 2020-12-25 14:54:36 +01:00
Jan De Dobbeleer bea4799f9d fix: remove go-bindata module dependency 2020-12-25 14:54:36 +01:00
TravisTX 0e5e65d9e3 feat: mapped_locations_enabled 2020-12-25 14:52:01 +01:00
TravisTX 7ff4954766 fix: agnoster_short with <1 depth 2020-12-24 20:14:17 +01:00
khvitaly@gmail.com c6a7a9958a fix: correct spelling in Features section of README 2020-12-24 19:28:50 +01:00
TravisTX 7af8be2250 feat: use mapped_locations in folder style 2020-12-24 16:21:31 +01:00
Jan De Dobbeleer 4641146b1e fix: remove battery percentage on error
resolves #259
2020-12-24 13:25:19 +01:00
Jan De Dobbeleer d62c3d6e37 chore: add powershell theme information 2020-12-23 19:55:48 +01:00
Jan De Dobbeleer e60daec9a5 chore: adjust docs layout 2020-12-23 15:24:26 +01:00
Jan De Dobbeleer 5c2f1353c1 fix: doc typo's 2020-12-23 13:54:36 +01:00
Jan De Dobbeleer 1676d839af feat: add fish init script 2020-12-23 13:54:36 +01:00
Jan De Dobbeleer eb42e0c93a refactor: better engine write function 2020-12-23 13:54:36 +01:00