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
8fca218a7d
feat(build): static build
2022-01-19 19:46:52 +01:00
Michael Guntsche
de60367d79
fix(env): remove defer on platform
...
This is a small fix to actually store the value. Arguments to defers are apparently
evaluated immediately so put it in an anonymous function.
2022-01-19 07:43:08 +01:00
Jan De Dobbeleer
ad297dbe08
fix: init cache first
2022-01-18 21:29:05 +01:00
Jan De Dobbeleer
0a09924685
fix(platform): store value in cache
...
resolves #1601
2022-01-18 21:08:26 +01:00
Jan De Dobbeleer
3cca2104bb
feat(cache): allow for non-expiring values
2022-01-18 21:08:26 +01:00
Jan De Dobbeleer
e5dd07fb9a
feat: cache template environment data
2022-01-18 20:14:47 +01:00
Jan De Dobbeleer
9e77d0f939
fix(template): support surrounding variables with braces
2022-01-18 20:14:47 +01:00
Jan De Dobbeleer
e6d4413ae7
feat: adjust var names for consistency
...
BREAKING CHANGE: adjusts the way some segment work for templates.
Mapping the var names as following will resolve the issue.
- session/title/general purpose
- .Host -> .HostName
- .User -> .UserName
- az
- .UserName -> .Name
- kubectl
- .UserName -> .User
2022-01-17 16:29:39 +01:00
lnu
115759f4d3
feat(debug): cache path added to debug
2022-01-16 21:21:00 +01:00
Jan De Dobbeleer
a56b90005f
fix(os): lowercase OS name
...
resolves #1593
2022-01-16 20:06:38 +01:00
Jan De Dobbeleer
221f28afdd
feat(cli): print cache path
2022-01-16 18:22:40 +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
0404976b5c
refactor: remove the need for nil argument in mock
2022-01-15 21:38:06 +01:00
Jan De Dobbeleer
d71422a35b
feat(git): add remote URL for hyperlink
2022-01-14 22:50:24 +01:00
Jan De Dobbeleer
2ea2e633b8
fix(az): map User to UserName
...
avoid collision with default .User in template
2022-01-14 08:51:53 +01:00
Jan De Dobbeleer
f1e21949bc
fix(cygwin): do not clean config path
2022-01-14 08:42:52 +01:00
Jan De Dobbeleer
4542e92940
fix(az): proper path fix
2022-01-13 22:39:45 +01:00
Jan De Dobbeleer
d45c51cccc
feat(az): display info origin
...
resolves #1562
2022-01-13 20:32:32 +01:00
Jan De Dobbeleer
b1c427abaa
fix(az): use platform specific folder
...
resolves #1567
2022-01-13 20:32:32 +01:00
Jan De Dobbeleer
f512df208a
feat: expose environment info to all templates
2022-01-13 20:15:04 +01:00
lnu
c687512fba
feat(strava): add hyperlink to activity
...
VirtualRide icon like Ride
Watts, HearRate, Kudos info
2022-01-11 12:15:39 +01:00
Jan De Dobbeleer
a36063a580
fix(strava): rename Icon
2022-01-10 22:17:57 +01:00
Lars Erik Finholt
d2bf556e94
feat(strava): new segment
2022-01-10 21:44:28 +01:00
Jan De Dobbeleer
88206ff9c9
refactor: rename doGet to HTTPRequest
2022-01-10 21:44:28 +01:00
Sam Debruyn
5a69b3e771
fix: change default az segment template
2022-01-06 20:14:29 +01:00
Jan De Dobbeleer
e1f50ef885
refactor: rename environmentInfo
2022-01-01 20:22:52 +01:00
Jan De Dobbeleer
29e019511a
refactor: move properties to interface
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
9b15054378
refactor(main): move simple command up
2021-12-30 22:31:03 +01:00
Laurent Nullens
4960f8a2b7
fix(engine): osc99 support for windows terminal
...
wsl path conversion not needed anymore
2021-12-30 19:46:50 +01:00
Jan De Dobbeleer
7aaa7b110f
fix(config): resolve path for all shells
2021-12-30 15:51:31 +01:00
Jan De Dobbeleer
5549e0d7ad
fix(az): add user to exposed model for pwsh
2021-12-30 15:51:31 +01:00
Jan De Dobbeleer
ad5c77a61b
feat: parse azure config files
2021-12-29 16:58:06 +01:00
Jan De Dobbeleer
4ecf674e62
fix(git): return empty on error
2021-12-29 16:58:06 +01:00
Jan De Dobbeleer
e2a907e121
fix(template): do not replace words starting with .Env
2021-12-29 16:58:06 +01:00
Jan De Dobbeleer
5d1cd6209a
fix(pwsh): force console to UTF-8 from module
2021-12-27 13:39:43 +01:00
Jan De Dobbeleer
3c40c04d36
feat: deprecate envvar segment
...
favors text in a more generic way
2021-12-26 19:46:28 +01:00
Khaos
ce04362bb4
feat(wifi): read wifi state using native methods
2021-12-26 17:17:44 +01:00
lnu
393f99da93
fix(git): submodules support
2021-12-24 16:13:25 +01:00
Robbert Verbruggen
b245398661
feat(ipify): segment to show your external IP address
...
closes #1492
2021-12-23 15:56:27 +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
62b2a5cb16
fix(pwsh): do not trim paths
...
resolves #1477
2021-12-22 14:46:51 +01:00
Jan De Dobbeleer
d3e638e067
fix(git): use actual path instead of empty -C operator
...
relates to #1474
2021-12-21 20:35:17 +01:00
Jan De Dobbeleer
b400f05555
refactor: undo specific cmd invocation
2021-12-21 20:35:17 +01:00
memcpy-rand-rand-rand
0b4f3e1771
feat(brewfather): unit conversion routines
...
functions available to template
documentation
tests
2021-12-20 18:42:44 +01:00