Commit graph

1468 commits

Author SHA1 Message Date
Paulo Morgado 1b20c82440 feat: detect sln and sln files as project files 2023-11-01 12:04:37 +01:00
Alex Potter 5655bb4e6d feat: carbon intensity segment 2023-11-01 11:49:44 +01:00
Eng Zer Jun 7172ee42f6 refactor(migrate): delete redundant type conversion
`Property` is a defined type with underlying type of `string`. From the
Go specification [1]:

  "two types are identical if their underlying type literals are
structurally equivalent".

Therefore, we don't need to explicitly convert the string values to
`Property`.

[1]: https://go.dev/ref/spec#Type_identity

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-30 18:51:18 +01:00
Warren Buckley 0706a5b144 fix(umbraco): change made to keep checking through files found alongside umbraco folder
this is because we may have had a web.config file found (that is not for umbraco) before a *.csproj file is later found that does include umbraco installed
2023-10-30 15:40:20 +01:00
Sri Ramanujam 91fb561de7 feat(python): use parent directory as name when "venv" or ".venv" 2023-10-30 15:30:23 +01:00
Mateusz Bajorek 4b1fbb8860 fix(themes): yarn nerdfont 3.x icon codepoint 2023-10-30 14:15:48 +01:00
Warren Buckley 37ed322bb8 fix(umbraco): even older versions of umbraco in webconfig used a different appsetting key
now checks for umbracoconfigurationstatus and adds a new test case for it
2023-10-30 12:15:52 +01:00
Jan De Dobbeleer f598c3f73e fix(gopsutil): update fork
relates to #4397
2023-10-30 08:49:53 +01:00
Jan De Dobbeleer f40a7bbe8d
feat: build linux 386
relates to #4397
2023-10-29 16:32:21 +01:00
Jan De Dobbeleer e5547a8c85 fix(pwsh): use correct path variable
resolves #4385
2023-10-28 10:16:58 +02:00
Mateusz Bajorek 84f2c9a1eb
fix(themes): yarn icon for NerdFonts 3.x update
Co-authored-by: Mateusz Bajorek <mab@viabill.com>
2023-10-28 09:56:01 +02:00
Warren Buckley 30e4a591d7
feat(segment): umbraco segment to display modern or legacy version 2023-10-28 09:54:43 +02:00
Jan De Dobbeleer 46c6275630 fix(lint): make string repetitions constant 2023-10-24 10:53:23 +00:00
dependabot[bot] 858a0d6ede chore(deps): bump github.com/hashicorp/hcl/v2 in /src
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.19.0 to 2.19.1.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.19.0...v2.19.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-19 00:40:40 +00:00
Jan De Dobbeleer 1bde6f929b feat(nu): transient prompt 2023-10-18 11:19:14 +02:00
Jan De Dobbeleer 205cfe3847 fix(pwsh): validate theme path existence
resolves #4359
2023-10-18 10:40:10 +02:00
Jan De Dobbeleer e15a797640 feat(shell): allow user to specify the cache path with OMP_CACHE_DIR
resolves #4321
2023-10-17 09:15:30 +02:00
Jan De Dobbeleer 0cfe9a7423 fix(git): do not convert path when using native_fallback in WSL 2023-10-17 09:15:30 +02:00
BPplays dadbb28822 fix(os): add 'almalinux' to the icon map 2023-10-17 08:35:52 +02:00
dependabot[bot] d1debcfd6a chore(deps): bump github.com/gookit/config/v2 in /src
Bumps [github.com/gookit/config/v2](https://github.com/gookit/config) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/gookit/config/releases)
- [Commits](https://github.com/gookit/config/compare/v2.2.3...v2.2.4)

---
updated-dependencies:
- dependency-name: github.com/gookit/config/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 00:35:19 +00:00
dependabot[bot] ec16a859f6 chore(deps): bump github.com/hashicorp/hcl/v2 in /src
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.18.1 to 2.19.0.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.18.1...v2.19.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 00:34:55 +00:00
ginglis13 eef39eff77 refactor: remove io/ioutil
io/ioutil has been deprected since go 1.16
https://pkg.go.dev/io/ioutil

Signed-off-by: ginglis13 <ginglis05@gmail.com>
2023-10-14 19:31:06 +02:00
nopeless fb5744985b fix(project): remove env folder for python 2023-10-14 09:04:05 +02:00
dependabot[bot] 4baeed8cc9 chore(deps): bump github.com/charmbracelet/lipgloss in /src
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.9.0...v0.9.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-13 00:28:10 +00:00
Jan De Dobbeleer 82be7a507a fix(git): initialize status prior to bare repo check
resolves #4330
2023-10-12 18:49:01 +02:00
dependabot[bot] 1c24745e58 chore(deps): bump github.com/charmbracelet/lipgloss in /src
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 01:05:25 +00:00
dependabot[bot] 4325d4afd3 chore(deps): bump github.com/hashicorp/hcl/v2 in /src
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.18.0 to 2.18.1.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.18.0...v2.18.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 01:20:53 +00:00
dependabot[bot] 33d4fbcb90 chore(deps): bump golang.org/x/sys from 0.12.0 to 0.13.0 in /src
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/sys/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 01:08:56 +00:00
dependabot[bot] 12977b0792 chore(deps): bump golang.org/x/mod from 0.12.0 to 0.13.0 in /src
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/mod/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 01:07:22 +00:00
dependabot[bot] fc05444a24 chore(deps): bump golang.org/x/image from 0.12.0 to 0.13.0 in /src
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/image/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 01:00:18 +00:00
Warren Buckley 64da68a3b8 feat(shell): make hasfiles support case insensitive filenames in pattern 2023-10-02 16:49:24 +02:00
dependabot[bot] d6a3345b99 chore(deps): bump github.com/shirou/gopsutil/v3 in /src
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.8 to 3.23.9.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.8...v3.23.9)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 00:43:28 +00:00
Jan De Dobbeleer 5f5c0c0e9b fix(git): strip correct directory part when in worktree 2023-09-29 09:29:09 +02:00
Jan De Dobbeleer 19020c10bb fix(ansi): pop color at the end of the text
resolves #4290
2023-09-27 14:23:51 +02:00
Jan De Dobbeleer 2b51623bda fix(ansi): reset transparent on override end
resolves #4280
2023-09-24 09:23:07 +02:00
Jan De Dobbeleer 31a51ff117 feat(git): support for remotes
currently a hidden feature
2023-09-23 22:33:39 +02:00
Jan De Dobbeleer bd3cd316c2 fix(ansi): restore previous override correctly 2023-09-23 22:33:39 +02:00
Jan De Dobbeleer 35c2588365 chore: fix function typo 2023-09-19 19:35:23 +02:00
dependabot[bot] 83149b2298 chore(deps): bump golang.org/x/image from 0.11.0 to 0.12.0 in /src
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/image/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 11:04:23 +02:00
dependabot[bot] 83d2d24913 chore(deps): bump github.com/shirou/gopsutil/v3 in /src
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.7 to 3.23.8.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.7...v3.23.8)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 11:04:03 +02:00
dependabot[bot] 7a3eec6007 chore(deps): bump golang.org/x/text from 0.12.0 to 0.13.0 in /src
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 00:48:53 +00:00
dependabot[bot] 6818bc0ac7 chore(deps): bump golang.org/x/sys from 0.11.0 to 0.12.0 in /src
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/sys/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 00:41:48 +00:00
dependabot[bot] e48a32d80f chore(deps): bump github.com/hashicorp/hcl/v2 in /src
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.17.0 to 2.18.0.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.17.0...v2.18.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 00:41:34 +00:00
Jan De Dobbeleer 3ccafdf8f4 fix(font): create Fonts folder when non-existant
resolves #4257
2023-09-15 08:41:10 +02:00
Jan De Dobbeleer b887d13ccd fix(nu): use native right prompt command
resolves #4237

this also avoids renderibng the right prompt twice when the shell
script uses the `oh-my-posh print right` command
2023-09-15 08:41:10 +02:00
pulsation f0d57d1976 feat(platform): add support for OpenBSD 2023-09-12 20:50:00 +02:00
Jan De Dobbeleer 0b0111fe2a fix(compare): support int64
relates to #3309
2023-09-09 20:39:22 +02:00
Jan De Dobbeleer 346091feb8 feat(colors): allow nested overrides 2023-09-08 16:23:50 +02:00
Ernesto R. C. Pereda 43aca8e9ea
feat(helm): add segment 2023-09-04 21:00:04 +02:00
Jan De Dobbeleer 8f8dd04ac7 fix(git): correctly identify conflicted files 2023-09-04 17:06:20 +02:00
Jan De Dobbeleer 3d53650b22 refactor(git): add booleans to identify state 2023-09-04 17:06:20 +02:00
Jan De Dobbeleer 669521c8f7 fix(engine): do not print sequential newlines on no content
relates to #4182
2023-09-03 09:03:14 +02:00
Jan De Dobbeleer 566a9d1471 fix(project): return nil when no files found for pwsh 2023-09-02 09:15:27 +02:00
Jan De Dobbeleer d3272faedd fix(kraken): only use first root commit 2023-09-02 09:15:27 +02:00
Jan De Dobbeleer a9e2ba61fa fix(windows): escape PWD in emulated shells
relates to #4208
2023-08-31 11:01:23 +02:00
kema dba8b2f7ad
feat(git): add aws codecommit upstream 2023-08-30 21:08:54 +02:00
Jan De Dobbeleer 7cf63eead5 fix(engine): do not print empty block 2023-08-30 12:56:07 +02:00
Jan De Dobbeleer eaa28738e2 chore(go): update to go 1.21 2023-08-29 20:33:57 +02:00
Jan De Dobbeleer cac268bcca feat(font): display font families
resolves #4168
2023-08-27 12:06:10 +02:00
Jan De Dobbeleer b2f3a43d19 fix(project): exclude powershell script analyzer settings file
resolves #4188
2023-08-27 12:06:10 +02:00
Jan De Dobbeleer b5bde55cf2 fix: store downloaded config on file name hash 2023-08-27 12:06:10 +02:00
Jan De Dobbeleer 0f8929ed13 feat(debug): print templates 2023-08-25 12:09:54 +02:00
Jan De Dobbeleer a1841d21e2 fix(template): support all numbers for trunc
resolves #4184
2023-08-25 12:09:54 +02:00
Jan De Dobbeleer 672f108d22 feat(git): add SHA1 to commit metadata 2023-08-25 12:09:54 +02:00
dependabot[bot] b2e3d454cb chore(deps): bump github.com/charmbracelet/lipgloss in /src
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.7.1 to 0.8.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.7.1...v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-23 09:30:35 +02:00
Dan Rose a711f9b7f7 fix(fonts): register user fonts correctly on Windows
Previously on Windows, fonts installed with `oh-my-posh font install --user` would not show up in the Control Panel nor as an option in program font menus.

Now, fonts are correctly registered.
2023-08-18 23:34:51 +02:00
Jan De Dobbeleer 75e098b20b fix(path): add last element when only 1 level deep
resolves #4162
2023-08-17 09:31:39 +02:00
Jan De Dobbeleer aa51cd65d0 fix(pwsh): patch PowerShell color bleed
relates to #65
2023-08-09 08:28:35 +02:00
Jan De Dobbeleer 328601be78 fix(template): save Segments correctly
resolves #4143
2023-08-08 09:25:13 +02:00
dependabot[bot] 50d98f5e68 chore(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0 in /src
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 01:13:22 +00:00
dependabot[bot] 23f1846182 chore(deps): bump golang.org/x/image from 0.10.0 to 0.11.0 in /src
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/image/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 00:50:02 +00:00
Jan De Dobbeleer 0afa0880a9 fix(pwsh): remove hack that solves a pwsh bug
relates to #65
2023-08-06 20:56:44 +02:00
Jan De Dobbeleer f9f309d1f4 fix(plain): do not print title 2023-08-06 15:52:26 +02:00
Jan De Dobbeleer 9a6fbb6f52 fix(rprompt): print when plain 2023-08-06 15:52:26 +02:00
Jan De Dobbeleer 4bab59fbd8 feat(debug): use actual prompt logic 2023-08-06 15:52:26 +02:00
Jan De Dobbeleer 744b1f042c fix(prompt): only pad on positive count 2023-08-06 10:10:58 +02:00
L. Yeung 8db1365ea6 fix(cli): list all supported shells in usage text for init 2023-08-06 07:29:04 +02:00
Jan De Dobbeleer c78aa60455 fix(pwsh): force initialization of NoExitCode
resolves #4128
2023-08-05 17:53:58 +02:00
Jan De Dobbeleer 3f1eb821f0 refactor(terminalwidth): add debug info 2023-08-05 17:53:58 +02:00
Jan De Dobbeleer f55da0ebcb fix(tooltip): position with spaces instead of ANSI 2023-08-05 17:53:58 +02:00
Jan De Dobbeleer c23069b185 fix(prompt): print right block using spaces 2023-08-05 17:53:58 +02:00
Jan De Dobbeleer 181b789186 fix(rprompt): position using spaces instead of ANSI 2023-08-05 17:53:58 +02:00
Jan De Dobbeleer 2007f9d1ab fix(platform): use built-in sync.Map
relates to #4116
2023-08-04 08:26:06 +02:00
Jan De Dobbeleer 8554fb66a6 fix(winreg): fetch default key value
resolves #4119
2023-08-03 20:12:23 +02:00
Jan De Dobbeleer ea610029b2 fix(engine): use concurrent map for Segments
resolves #4116
2023-08-03 20:12:23 +02:00
dependabot[bot] 4246ee235c chore(deps): bump github.com/shirou/gopsutil/v3 in /src
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.6 to 3.23.7.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.6...v3.23.7)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-02 01:00:13 +00:00
dependabot[bot] 8b254f40cb chore(deps): bump golang.org/x/image from 0.9.0 to 0.10.0 in /src
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/image/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-02 00:59:01 +00:00
Jan De Dobbeleer 8aac0992cd feat(template): add hresult function 2023-07-29 14:59:01 +02:00
Jan De Dobbeleer 3a580ff122 feat(config): parse jsonc config files
resolves #4097
2023-07-27 13:26:04 +02:00
Jan De Dobbeleer 0af3029cf1 fix(cursor): allow disabling cursor positioning
resolves #4072
2023-07-24 19:20:41 +02:00
Jan De Dobbeleer f47da9592f feat(exit): implement pipestatus
BREAKING CHANGE: exit segment is now called status segment.

The exit keyword is now deprecated and will be removed in a future
release. Please use the status keyword instead:

```diff
"segments": {
    {
-     "type": "exit"
+     "type": "status"
    }
}
```

Additionally, the status segment configuration has changed to support
$PIPESTATUS. You can include a status template to customize the
rendering of each individual status code (supported in fish, zsh and
bash).

```json
"segments": {
    {
        "type": "status",
        "properties": {
            "status_template": "{{ if gt .Code 0 }}\uf071{{ else }}\uf00c{{ end }}",
            "status_separator": " "
        }
    }
}
```

In case no $PIPESTATUS is available, the status segment will fall back
to the exit code of the last command using the status template
for rendering.

The `{{ .Meaning }}` property has been marked as deprecated and can be
replaced with `{{ reason .Code }}`, allowing it to be reused in
cross segment templates.

resolves #4070
2023-07-24 11:46:33 +02:00
dependabot[bot] 2da3722521 chore(deps): bump github.com/mattn/go-runewidth in /src
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.14 to 0.0.15.
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.14...v0.0.15)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-24 01:07:52 +00:00
Jan De Dobbeleer 413cb97bcd fix(http): only use HTTPS_PROXY 2023-07-23 09:35:58 +02:00
Jan De Dobbeleer aacef4b186 feat: add quasar segment 2023-07-21 14:45:31 +02:00
dependabot[bot] 1eba276960 chore(deps): bump github.com/gookit/color from 1.5.3 to 1.5.4 in /src
Bumps [github.com/gookit/color](https://github.com/gookit/color) from 1.5.3 to 1.5.4.
- [Release notes](https://github.com/gookit/color/releases)
- [Commits](https://github.com/gookit/color/compare/v1.5.3...v1.5.4)

---
updated-dependencies:
- dependency-name: github.com/gookit/color
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-21 00:33:41 +00:00
Jan De Dobbeleer 5f8ae8094f refactor: add more logging for environment
relates to #4066
2023-07-19 08:37:31 +02:00
Jan De Dobbeleer d4d6710fab fix(os): support alma linux 9
resolves #4065
2023-07-19 08:37:31 +02:00
Jan De Dobbeleer 1f283051d2 fix(os): use correct Android platform name 2023-07-14 16:17:36 +02:00
Jan De Dobbeleer b27608dd73 feat(kubectl): specify context aliases 2023-07-14 14:00:02 +02:00
Jan De Dobbeleer 7d5c731d2f feat: build for android 2023-07-14 13:08:42 +02:00
Jan De Dobbeleer bce149b82f fix(azure): correct Azure icon
resolves #4056
2023-07-14 07:28:12 +02:00
Jen Spinney cca3e053ad feat: use asdf to determine elixir version
In order to speed up version checking for the elixir segment, this change makes
it so that we first ask asdf for the elixir version, which is much faster.

If asdf is not installed or configured, the previous behavior of running
`elixir --version` will be used.

This also makes a minor fix to the elixir documentation, replacing 'flutter' with 'elixir'.
2023-07-10 08:26:44 +02:00
Jan De Dobbeleer 69a95bfb38 feat(aws): use AWS_DEFAULT_PROFILE for profile name
resolves #4036
2023-07-10 08:05:41 +02:00
dependabot[bot] 2bad39305f chore(deps): bump golang.org/x/image from 0.8.0 to 0.9.0 in /src
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/image/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 00:54:36 +00:00
dependabot[bot] 41e1eceb30 chore(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0 in /src
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 01:17:26 +00:00
dependabot[bot] 2aaf611313 chore(deps): bump golang.org/x/text from 0.10.0 to 0.11.0 in /src
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 01:10:26 +00:00
dependabot[bot] f960fbc0d1 chore(deps): bump golang.org/x/mod from 0.11.0 to 0.12.0 in /src
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/mod/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 01:03:04 +00:00
dependabot[bot] 4ad97dd29d chore(deps): bump github.com/shirou/gopsutil/v3 in /src
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.5 to 3.23.6.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.5...v3.23.6)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 01:12:05 +00:00
Jan De Dobbeleer d005bae4f4 feat: add version -v
resolves #4014
2023-07-02 21:11:01 +02:00
JT bb7584e404 chore: update nushell support for env updates 2023-06-30 20:43:44 +02:00
Jan De Dobbeleer 301ca0b7aa fix(git): initialize status correctly
relates to #3992
2023-06-26 13:29:32 +02:00
Jan De Dobbeleer 448bbd302f fix(node): invert .Mismatch logic 2023-06-26 10:29:08 +02:00
Jan De Dobbeleer 32ee6fa7ab feat(scm): allow status override
resolves #3992
2023-06-26 08:50:53 +02:00
dependabot[bot] ad2a96ef1a chore(deps): bump github.com/gookit/config/v2 in /src
Bumps [github.com/gookit/config/v2](https://github.com/gookit/config) from 2.2.2 to 2.2.3.
- [Release notes](https://github.com/gookit/config/releases)
- [Commits](https://github.com/gookit/config/compare/v2.2.2...v2.2.3)

---
updated-dependencies:
- dependency-name: github.com/gookit/config/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-21 01:20:16 +00:00
nopeless 06163465e8
feat(execution): lucky7 style 2023-06-19 12:22:17 +00:00
Jan De Dobbeleer c0429406dc chore: remove pinned golangci-lint 2023-06-15 09:33:16 +02:00
Jan De Dobbeleer 4c0c596c2c feat(path): add option to colorize first and last folder 2023-06-15 09:33:16 +02:00
dependabot[bot] 736e092024 chore(deps): bump golang.org/x/mod from 0.10.0 to 0.11.0 in /src
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/mod/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-15 01:15:34 +00:00
dependabot[bot] 5f99026f77 chore(deps): bump golang.org/x/image from 0.7.0 to 0.8.0 in /src
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/image/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-14 01:18:44 +00:00
Jan De Dobbeleer ad2780f964 feat(path): add option to format folders 2023-06-13 20:22:42 +02:00
dependabot[bot] 07002ddd94 chore(deps): bump golang.org/x/text from 0.9.0 to 0.10.0 in /src
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 06:45:48 +00:00
dependabot[bot] 9b69759148 chore(deps): bump golang.org/x/sys from 0.8.0 to 0.9.0 in /src
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 06:38:48 +00:00
Jan De Dobbeleer eee5198664 feat(fonts): install as user 2023-06-12 20:26:13 +02:00
dependabot[bot] 23974463a6 chore(deps): bump github.com/gookit/config/v2 in /src
Bumps [github.com/gookit/config/v2](https://github.com/gookit/config) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/gookit/config/releases)
- [Commits](https://github.com/gookit/config/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: github.com/gookit/config/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 04:46:00 +00:00
dependabot[bot] a0742d640b chore(deps): bump github.com/BurntSushi/toml from 1.3.1 to 1.3.2 in /src
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](https://github.com/BurntSushi/toml/compare/v1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-09 01:13:37 +00:00
Bohdan Dorokhin 6e9d072b5f
feat(sitecore): support CLI context switching
BREAKING CHANGE: you will need to migrate your current sitecore segment template
 in case you have a custom one. Have a look at the documentation to see what changed.
2023-06-08 07:40:05 +02:00
dependabot[bot] 14100e7dce chore(deps): bump github.com/BurntSushi/toml from 1.3.0 to 1.3.1 in /src
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](https://github.com/BurntSushi/toml/compare/v1.3.0...v1.3.1)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-07 01:20:33 +00:00
dependabot[bot] c11db830de chore(deps): bump github.com/charmbracelet/bubbletea in /src
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.24.1 to 0.24.2.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.24.1...v0.24.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-07 01:13:18 +00:00
Jan De Dobbeleer dd68da8793 feat(git): fetch user information
resolves #3933
2023-06-06 08:06:00 +02:00
dependabot[bot] bd56847291 chore(deps): bump github.com/shirou/gopsutil/v3 in /src
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.4 to 3.23.5.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.4...v3.23.5)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 07:09:33 +00:00
dependabot[bot] 11a825f945 chore(deps): bump github.com/hashicorp/hcl/v2 in /src
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.16.2 to 2.17.0.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.16.2...v2.17.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 06:52:55 +02:00
dependabot[bot] 7341c67efd chore(deps): bump github.com/charmbracelet/bubbles in /src
Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.15.0 to 0.16.1.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Commits](https://github.com/charmbracelet/bubbles/compare/v0.15.0...v0.16.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbles
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 01:17:23 +00:00
Jan De Dobbeleer f8e72d0c05 fix(pwsh): use correct ESC char for FTCS mark 2023-05-31 08:39:14 +02:00
dependabot[bot] e75743d40a chore(deps): bump github.com/stretchr/testify in /src
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-31 01:21:14 +00:00
dependabot[bot] e02d38200f chore(deps): bump github.com/BurntSushi/toml from 1.2.1 to 1.3.0 in /src
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](https://github.com/BurntSushi/toml/compare/v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-31 01:14:25 +00:00
Jan De Dobbeleer edf93c3883 feat(http): use proxy from environment for HTTP calls
resolves #3897
2023-05-25 19:37:04 +02:00
dependabot[bot] 0b0d1afffc chore(deps): bump github.com/charmbracelet/bubbletea in /src
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.24.0 to 0.24.1.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.24.0...v0.24.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-25 05:15:34 +00:00
Jan De Dobbeleer 1c7773c2ce chore(debug): show info on default config 2023-05-22 18:57:19 +02:00
Matthew Miller 608ae1ef2e feat: update Open Weather Map to use Geocoding API 2023-05-21 15:01:06 +02:00
Matthew Miller ed8d89a7cc feat: update Open Weather Map to use Geocoding API
Updated the Open Weather Map Current Weather URL to remove the
deprecated query parameter. Updated the URL to add the supported
latitude and longitude parameters.

Added a call to the Open Wetaher Map Geocoding API to resolve the
location parameter to latitude and longitude values as specified in the
Open Weather Map documentation.

Added properties to the Open Weather Map segment to allow users to
manually specify the latitude and longitude if desired. Doing this will
skip the geocoding API call and ignore the location parameter.

Updated the website documentation for the Open Weather Map segment to
reflect the property changes and explain how to use them.
2023-05-21 15:01:06 +02:00
L. Yeung 61fa281894 fix(platform): avoid duplicate creations of template cache 2023-05-20 08:05:21 +02:00
L. Yeung 6d6efc2981 fix(upgrade): avoid duplicate HTTP requests 2023-05-19 20:51:51 +02:00
dependabot[bot] 01468feb53 chore(deps): bump github.com/stretchr/testify in /src
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 01:22:53 +00:00
Bas Lijten c5193c9880 feat: new Sitecore context segment 2023-05-18 21:41:05 +02:00
Jan De Dobbeleer f938794ccd feat: upgrade segment 2023-05-18 19:55:29 +02:00
krzysdz 6544815766
feat: shell integration using FinalTerm's OSC sequences 2023-05-17 21:27:21 +00:00
Alex Villarreal 192309a283 fix(node): remove leading space for PackageManagerIcon in node segment 2023-05-17 20:27:07 +02:00
Jan De Dobbeleer 2606031c76 fix(yaml): parse uint64 to int
resolves #3861
2023-05-17 20:18:18 +02:00
Jan De Dobbeleer c62a272e72 chore(tests): do not fail test on no connection
resolves #3860
2023-05-17 20:11:03 +02:00
Jan De Dobbeleer c34e39c4ed fix(block): adjust trailing diamond color overrides
resolves #3850
2023-05-17 09:51:38 +02:00