Commit graph

72 commits

Author SHA1 Message Date
Jan De Dobbeleer 906ece2af9 refactor: move environment into it's own module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer f7a07c6b62 refactor(segments): string() to template()
moves templating engine to Segment
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer b816a0bf70 feat: templates for all segments 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer d75f6e30aa fix: use debug for logging pwd 2022-01-20 14:33:23 +01:00
Jan De Dobbeleer fc456da107 refactor: rename getcwd to pwd 2022-01-20 14:22:29 +01:00
Jan De Dobbeleer 6afa7711b2 feat: log directories on debug
relates to #1605
2022-01-20 14:22:29 +01:00
Jan De Dobbeleer ad297dbe08 fix: init cache first 2022-01-18 21:29:05 +01:00
Jan De Dobbeleer e5dd07fb9a feat: cache template environment data 2022-01-18 20:14:47 +01:00
Jan De Dobbeleer 0332fbfebb fix: create environ cache on init 2022-01-15 23:25:49 +01:00
Jan De Dobbeleer dc50bd3546 fix(env): init environ cache 2022-01-15 23:08:47 +01:00
Jan De Dobbeleer a200ee73ff feat: add OS to template functionality 2022-01-15 21:38:06 +01:00
Jan De Dobbeleer f1e21949bc fix(cygwin): do not clean config path 2022-01-14 08:42:52 +01:00
Jan De Dobbeleer 88206ff9c9 refactor: rename doGet to HTTPRequest 2022-01-10 21:44:28 +01:00
Jan De Dobbeleer e1f50ef885 refactor: rename environmentInfo 2022-01-01 20:22:52 +01:00
Jan De Dobbeleer 6d67b147e4 fix(config): do not resolve empty config
relates to https://github.com/JanDeDobbeleer/oh-my-posh/discussions/1518
2021-12-30 22:31:03 +01:00
Jan De Dobbeleer 7aaa7b110f fix(config): resolve path for all shells 2021-12-30 15:51:31 +01:00
Khaos ce04362bb4
feat(wifi): read wifi state using native methods 2021-12-26 17:17:44 +01:00
lnu 77993158e2 fix(git): use the right git executable for WSL
git executable detection
path conversion when needed
2021-12-23 10:48:54 +01:00
Jan De Dobbeleer b400f05555 refactor: undo specific cmd invocation 2021-12-21 20:35:17 +01:00
Will 0d079a4d8a
feat(brewfather): add segment 2021-12-15 07:49:32 +00:00
will 2ccaf90cbf refactor(winreg): make windows registry query function more general
simplify config definition, requires one prop to define path and key
add variant return type
add template-accessible query functions on the segment for advanced use
2021-12-12 20:25:02 +01:00
Khaos66 403bf12401 refactor: refactored ignoreErr func to return bool value 2021-12-11 14:49:04 +01:00
Khaos66 63b20f7e43 fix(battery): ignore UnknownChareRate error
This error is returned when Windows can't get the charge rate from the battery
2021-12-11 14:49:04 +01:00
Jan De Dobbeleer 4294351e6f revert(windows): force the use of .exe
This reverts commit f00f5f9cf7.
Resolves #1387
2021-12-08 13:46:29 +01:00
Jan De Dobbeleer f00f5f9cf7 fix(windows): force the use of .exe
resolves #1369
2021-12-03 22:01:44 +01:00
Jan De Dobbeleer 17751107a8 feat(windows): registry query segment 2021-11-24 14:24:02 +01:00
Jan De Dobbeleer c5fb63885f refactor(cache): add correct unit indication 2021-11-23 11:17:37 +01:00
lnu 25be370618 feat(sysinfo): sysinfo segment
cpu, mem, load, ...
2021-11-19 13:44:00 +01:00
Jan De Dobbeleer 4f39b68d96 refactor: remove trace struct 2021-11-17 07:19:43 +01:00
Jan De Dobbeleer e0513e95b0 refactor: provide log output directly on debug 2021-11-17 07:19:43 +01:00
Jan De Dobbeleer 274f800ae2 chore: better logging for command output 2021-11-10 20:15:28 +01:00
George Schizas a01f4faa1e fix(windows): consistent casing for drive and only drive letters
resolves #1173
2021-11-05 19:33:54 +01:00
Jan De Dobbeleer 94b743c43d feat: environment error logging
relates to #1085
2021-10-20 13:17:10 +02:00
Jan De Dobbeleer a118e178b5 feat(cache): set cache directory correctly
resolves #1017
2021-10-03 10:47:44 +02:00
Jan De Dobbeleer e846f2b683 chore: add mocked cache 2021-09-23 23:03:46 +02:00
Jan De Dobbeleer 7738cad7cb feat(cache): add timestamp 2021-09-23 23:03:46 +02:00
Jan De Dobbeleer 7d2001c936 feat: cache capabilities 2021-09-23 23:03:46 +02:00
Jan De Dobbeleer 8d35689170 refactor: split concurrent map from cache implementation 2021-09-23 23:03:46 +02:00
Jan De Dobbeleer b2515650c1 fix(battery): map battery behavior before returning 2021-09-20 07:19:01 +02:00
Jan De Dobbeleer f7de8aed27 fix: support for windows arm64 2021-09-14 18:49:29 +02:00
Laurent Nullens bb246377ce
feat(git): display worktree count
resolves #913
2021-09-04 18:32:55 +00:00
lnu e618163da3 feat(owm): support all units + hyperlink + http timeout
new http_timeout param for segments executing http request
doc updated
json schema updated(missing data for owm + timeout)
hyperlink replacement regex updated to support http/https, fix an inssue
when a segment with hyperlink was on the right prompt(pwsh)
2021-08-19 09:04:52 +02:00
Jan De Dobbeleer f6c79050d0 fix: run commands faster 2021-08-10 06:27:50 +02:00
Jan De Dobbeleer 9e8a7182b6 refactor: better log output 2021-08-10 06:27:50 +02:00
Jan De Dobbeleer 073f18f53a feat(debug): trace system calls to log file 2021-08-01 15:34:07 +02:00
Jan De Dobbeleer b9906b2f7a feat: hide rprompt when the prompt is too large
relates to #715
2021-05-23 07:28:10 +02:00
Jan De Dobbeleer 5e9b04ae2f revert: hide rprompt when the prompt is too large
This reverts commit a8d4e51d54.
2021-05-22 21:20:54 +02:00
Jan De Dobbeleer a8d4e51d54 feat: hide rprompt when the prompt is too large
relates to #715
2021-05-22 20:25:43 +02:00
Jan De Dobbeleer 4030c32279 feat: add dart support 2021-05-14 21:28:16 +02:00
gitolicious 52b66d1e5b
feat: add OS template property 2021-04-24 19:31:56 +00:00