Commit graph

1786 commits

Author SHA1 Message Date
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
Jan De Dobbeleer eff8af399f fix(config): remove broken GitHub icon override
resolves #3856
2023-05-17 09:26:02 +02:00
dependabot[bot] f5e365301d chore(deps): bump github.com/shirou/gopsutil/v3 in /src
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.3 to 3.23.4.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.3...v3.23.4)

---
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-05-11 10:58:32 +02:00
dependabot[bot] 478319b790 chore(deps): bump github.com/charmbracelet/bubbletea in /src
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.23.2 to 0.24.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.23.2...v0.24.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-11 10:50:28 +02:00
dependabot[bot] 5571b90ed7 chore(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0 in /src
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.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-05-11 10:43:35 +02:00
L. Yeung 4b71c2ba07 feat(path): respect folder_separator_icon in a colon-trailed root 2023-05-11 06:53:28 +02:00
Jan De Dobbeleer ddd4ecafc9 fix(windows): respect flag lengths 2023-05-10 20:19:51 +02:00
Jan De Dobbeleer c5feb08791 fix(font): install all fonts in zip file 2023-05-10 12:48:38 +02:00
Jan De Dobbeleer 865374a0f5 fix(image): add background reset sequence 2023-05-09 11:44:11 +02:00
Jan De Dobbeleer c57975985f fix(font): migrate away from material icons
resolves #3818
2023-05-09 11:32:04 +02:00
Javier Dehesa 8f03f415e1 feat(python): add support for pyvenv.cfg prompt 2023-05-09 11:09:22 +02:00
Matthew Miller dc085abb06
fix(owm): adjust icons outside of the MD range 2023-05-09 09:06:39 +02:00
Jan De Dobbeleer 0f7c10328f feat(image): cache font instead of embedding 2023-05-08 20:43:54 +02:00
Jan De Dobbeleer b51d1de205
fix(cache): only store template cache on primary and transient 2023-05-08 13:35:06 +02:00
Jan De Dobbeleer 9663a29fe6
feat(font): update to Nerd Font V3
BREAKING CHANGE: this deprecates support for Nerd Font V2 and
requires a compatible V3 Nerd Font. Note for users experiencing
issues with icons, update to the latest Nerd Font of your choice
2023-05-08 13:33:59 +02:00
Jan De Dobbeleer 4cae83ced1 feat(windows): add installation method
resolves #3799
2023-05-06 20:32:21 +02:00
Jan De Dobbeleer 0a5230c8ca fix(notice): update brew command
resolves #3785
2023-05-06 20:11:26 +02:00
Jan De Dobbeleer 289ca41709 fix(millis): do not create env 2023-05-04 10:51:32 +02:00
Jan De Dobbeleer cef5def472 fix(font): correct feedback on error
resolves #3782
2023-05-02 17:36:48 +02:00
Jan De Dobbeleer f0c88efb40 fix(path): validate index before assignment
resolves #3768
2023-04-27 20:07:04 +02:00
Jan De Dobbeleer 66ca5ccf1f feat(path): allow coloring the folder_separator_icon on cycle 2023-04-25 20:42:12 +02:00
Jan De Dobbeleer 3562e54a16 feat(go): update dependencies 2023-04-24 10:37:54 +02:00
Jan De Dobbeleer 1e597a7c51 chore(template): add test cases to cleanTemplate 2023-04-24 09:14:50 +02:00
Jan De Dobbeleer 077e538500 fix(sysinfo): remove CPU context
BREAKING CHANGE: this property isn't used in any of the themes and it's
incorrect as fetching CPU information requires a timer which we don't
want to use as it will make rendering the prompt slower

For users who migrate to this version, remove the .CPU property from
the sysinfo segment's template in case you have that set.

resolves #3730
2023-04-24 09:08:11 +02:00
L. Yeung 17da877767 fix(pwsh): do not render a transient prompt when text is selected 2023-04-23 07:44:46 +02:00
Jan De Dobbeleer 9239b26209 fix(xonsh): do not print hyperlink ANSI 2023-04-22 21:41:06 +02:00
Jan De Dobbeleer a5274b7ee0 fix(xonsh): use string literal for config path 2023-04-22 21:41:06 +02:00
Jan De Dobbeleer a1b95a0274 refactor: split engine logic 2023-04-22 21:41:06 +02:00
L. Yeung 6c181c1120 refactor(pwsh): move tooltip erasure logic to engine 2023-04-22 17:46:41 +02:00
Jan De Dobbeleer 287f183244 feat: allow segment to override global properties 2023-04-22 12:18:09 +02:00
Jan De Dobbeleer b2e1b041e3 fix: do not quote config for elvish and xonsh
resolves #3740 #3739
2023-04-22 08:59:04 +02:00
L. Yeung 8d8d06d4c8 fix(pwsh): erase a previous tooltip before a new one is rendered 2023-04-22 08:07:49 +02:00
Jan De Dobbeleer 2417960c22 fix(xonsh): do not use cat to capture string output
resolves #3739
2023-04-21 22:15:58 +02:00
L. Yeung 14f012308e fix(tooltip): check only the first word of command line 2023-04-21 20:49:03 +02:00
L. Yeung 7368c6541e fix(pwsh): remove cached tip command when rendering a new prompt 2023-04-21 20:49:03 +02:00
L. Yeung 1474979804 fix(cmd): do not cache an empty tooltip 2023-04-21 20:49:03 +02:00
L. Yeung 770d1994bc fix(fish): do not prevent entering space characters on empty buffer 2023-04-21 20:49:03 +02:00
Iavael 2452475d8c fix(font): improve font download timeouts 2023-04-21 18:20:11 +02:00
Jan De Dobbeleer 41e90d66c8 fix(battery): map to Full when at 100% on darwin
resolves #3729
2023-04-20 08:42:48 +02:00
Jan De Dobbeleer d5b0886aea fix(fish): get last element from history
resolves #3632
2023-04-20 07:18:07 +02:00
Jan De Dobbeleer facc24d290 feat(path): add colored full path 2023-04-20 07:07:07 +02:00
Jan De Dobbeleer cdc560c7bd feat(transient): add Filler 2023-04-15 18:01:25 +02:00
kema-dev 94fa70675a fix(tooltips): improve behaviour when using zsh-autosuggestions 2023-04-14 20:33:17 +02:00
Jan De Dobbeleer 794bd5ea09 fix(unity): handle index correctly
resolves #3711
2023-04-14 16:20:26 +02:00
Jan De Dobbeleer 3baf41e051 fix(ansi): only clear background on inline overrides
resolves #3699
2023-04-09 19:14:17 +02:00
Jan De Dobbeleer 2d0ee8c8ab feat(sapling): identify new repo without commits 2023-04-08 11:07:36 +02:00
Benny Siegert 7c1b8cc51b feat: add support for NetBSD 2023-04-07 20:28:21 +02:00
Jason Zhang ddec1197df feat(argocd): add context segment 2023-04-07 10:00:49 +02:00
Jan De Dobbeleer 5bf3d613ae feat(log): add segment info 2023-04-05 21:06:44 +02:00
Jan De Dobbeleer 1f59e3d420 feat(properties): log properties information 2023-04-05 21:06:44 +02:00
Marc Espín 7e04bdc9f7
fix(nushell): update syntax to for v0.78.0 2023-04-05 13:43:26 +02:00
Jan De Dobbeleer 9f5ff92676 fix(font): ignore enter while downloading font list 2023-04-04 07:14:20 +02:00
Jan De Dobbeleer 8fe6dd2dcf feat(template): add parsed SHLVL 2023-04-02 19:33:30 +02:00
Jan De Dobbeleer 3f4f42cc09 fix(wsl): look for existance of wslpath
resolves #3657
2023-03-31 21:17:00 +02:00
Jan De Dobbeleer e6a99c5a52 feat(exit): add exit codes 64­­–78
resolves #3658
2023-03-31 21:17:00 +02:00
L. Yeung ea19410f23 fix(platform): detect WSL via /proc/version 2023-03-30 19:31:23 +02:00
Jan De Dobbeleer 4e19379e19 fix(shell): sync PWD creation
relates to #3646
2023-03-30 12:33:29 +02:00
Jan De Dobbeleer 16c0ba55bc feat(xonsh): add version 2023-03-30 12:33:29 +02:00
Jan De Dobbeleer d8f1c4c942 feat(project): support PowerShell modules
resolves #3636
2023-03-29 21:22:14 +02:00
Jan De Dobbeleer 17bd13b0fc feat(cftarget): add display_mode 2023-03-28 20:21:56 +02:00
Jan De Dobbeleer 7083cac3f1 feat(font): allow installation of local zip files 2023-03-28 19:37:35 +02:00
Jan De Dobbeleer 4eb1d0b1d6 fix(git): parse remote URL correctly
resolves #3641
2023-03-28 09:44:20 +02:00
Jan De Dobbeleer 96868bfd4f fix(path): return early when powerlevel is < max_width
resolves #3607
2023-03-27 17:00:13 +02:00
Jan De Dobbeleer 972ebd4805 fix(debug): output shell and version 2023-03-26 17:33:03 +02:00
Jan De Dobbeleer 92c28a2e8d fix(fish): bind keys to all modes
resolves #3625
2023-03-26 14:45:37 +02:00
Jan De Dobbeleer 27c8f65cd5 fix(pwsh): clear line after extra prompts
resolves #3628
2023-03-24 21:24:47 +01:00
Jan De Dobbeleer 4ff3bdf359 feat(diamond): merge segments on empty leading_diamond
resolves #3623
2023-03-24 21:07:38 +01:00
Jan De Dobbeleer d99f0658d7 feat(pwsh): set transient prompt on Ctrl+c 2023-03-23 10:46:11 +01:00
Jan De Dobbeleer 8c5c836f22 feat: enable/disable true color per terminal 2023-03-23 10:36:23 +01:00
Jan De Dobbeleer 0692873cd4 feat(debug): add plain support
resolves #3612
2023-03-22 09:19:32 +01:00
Jan De Dobbeleer 6af47a61d5 feat(path): add powerlevel style
resolves #3607
2023-03-21 20:47:17 +01:00
Jan De Dobbeleer c901575413 fix(pwsh): print upgrade notice in UTF8
resolves #3606
2023-03-21 12:50:56 +01:00
Jan De Dobbeleer 3b1823682d chore(go): update dependency 2023-03-20 12:45:14 +01:00
Jan De Dobbeleer 126d4101a1 fix(go): update dependencies 2023-03-17 09:45:01 +01:00
Jan De Dobbeleer 3067ccd3a5 fix(yaml): parse float64 from uint64
resolves ##3591
2023-03-16 07:13:38 +01:00
Jan De Dobbeleer 8dbdc160db fix(node): trim spaces from expected version
resolves #3583
2023-03-13 22:05:45 +01:00
Jan De Dobbeleer 71f81a0b79 feat(notice): disable/enable upgrade notice 2023-03-13 20:22:31 +01:00
Jan De Dobbeleer 9f70320525 fix(docker): fetch file content
resolves #3549
2023-03-13 08:30:47 +01:00
Jan De Dobbeleer c03ee35107 feat(node): export expected version
resolves #3576
2023-03-13 08:14:27 +01:00
Jan De Dobbeleer 8d92c87e05 fix(docker): only check the DOCKER_CONFIG path when relevant
relates to #3549
2023-03-12 14:07:41 +01:00
Janrey Licas e438c8d61e
fix(wakatime)!: rename Cummulative to Cumulative 2023-03-11 10:05:29 +01:00
Jan De Dobbeleer 5beac7b8fb feat(sapling): add commit description field 2023-03-05 15:14:03 +01:00
Jan De Dobbeleer 5ec65ab373 feat: add docker segment
resolves #3549
2023-03-05 14:45:28 +01:00
Jan De Dobbeleer ecf765191b chore: build with go1.20.1 2023-03-04 17:19:49 +01:00
Colt a97100f936
perf(unity): implement faster C# version lookups 2023-03-04 08:29:47 +01:00
kapsiR e1f3ea0cdb
chore: fix typos in TestCanUpgrade 2023-03-04 08:14:29 +01:00
Jan De Dobbeleer 393f30a082 feat: weekly upgrade notice 2023-03-03 20:28:41 +01:00
Colt 8ac08ad9e9
fix(unity): output corrupt with CRLF line ending 2023-02-28 16:34:33 +01:00
Jan De Dobbeleer c844bd871e fix(ansi): print 256 correctly
resolves #3533
2023-02-26 15:48:28 +01:00
Colt 1ceba7d603
feat: add Unity segment 2023-02-26 14:37:37 +00:00
Jan De Dobbeleer a07867089d chore(go): update dependencies 2023-02-25 21:29:15 +01:00
Jan De Dobbeleer ea29c99130 feat: add global variables 2023-02-20 14:18:38 +01:00
Jan De Dobbeleer 23148ea823 fix(windows): use GlobalMemoryStatusEx for memory
resolves #3272
resolves #3514
2023-02-19 16:35:13 +01:00
Jan De Dobbeleer 90b8178b91 feat(shell): support xonsh 2023-02-18 16:52:13 +01:00
Jan De Dobbeleer f84e7b209f feat(shell): support elvish 2023-02-18 14:00:10 +01:00
dependabot[bot] 65624d9f35 chore(deps): bump golang.org/x/image from 0.3.0 to 0.5.0 in /src
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases)
- [Commits](https://github.com/golang/image/compare/v0.3.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 15:50:45 +01:00
Jan De Dobbeleer 3979bff7f9 feat: toggle on segment alias 2023-02-17 12:57:29 +01:00
Jan De Dobbeleer bb15f078bb feat: support tcsh
resolves #3500
2023-02-17 10:17:52 +01:00
jan De Dobbeleer dd32018836 feat: add sapling segment 2023-02-16 15:24:19 +01:00
Jan De Dobbeleer 8362bad8bc fix(yaml): update dependency
resolves #3491
2023-02-14 16:19:55 +01:00
Jan De Dobbeleer 22b0704d4a chore(platform): more logging 2023-02-14 16:19:55 +01:00
Jan De Dobbeleer d3b79af6fd fix(go): adjust go-yaml version 2023-02-11 00:17:04 +01:00
Jan De Dobbeleer 0dde300af8 fix(yaml): replace yaml parser 2023-02-10 09:47:44 +01:00
Jan De Dobbeleer 19ced2699d fix(git): parse SSH URL's more reliably
resolves #3472
2023-02-09 07:44:43 +01:00
jan De Dobbeleer 195c1a934d fix(pwsh): clear ANSI after print
resolves #65
2023-02-08 20:50:51 +01:00
jan De Dobbeleer 76c7ea536b fix(config): migrate glyphs correctly for all formats 2023-02-08 13:44:41 +01:00
jan De Dobbeleer 42b75241c7 fix(ansi): do not clear after prompt
resolves #3464
2023-02-07 20:28:54 +01:00
Jan De Dobbeleer 565f53b117 fix(fish): do not use the iTerm segment 2023-02-05 21:51:16 +01:00
Jan De Dobbeleer c76e9fd166 feat: ignore leading space on clear 2023-02-05 10:18:04 +01:00
Jan De Dobbeleer 3b7604377d feat(go): update dependencies 2023-02-05 10:18:04 +01:00
Jan De Dobbeleer 441d1ff0af fix(cursor): only get when needed
resolves #3446
2023-02-04 11:37:28 +01:00
Jan De Dobbeleer 7dce0fe3e7 fix(config): log errors
relates to #3441
2023-02-03 08:28:49 +01:00
Jan De Dobbeleer 221b2d7d51 feat(shell): restore line logic for zsh and bash 2023-02-02 19:47:14 +01:00
Jan De Dobbeleer bc21ba3aef fix(shell): do not fetch cursor position using ANSI
resolves #3434
2023-02-01 10:42:04 +01:00
Jan De Dobbeleer db557e4b31 fix(warp): do not get cursor position
resolves #3431
2023-01-31 18:48:17 +01:00
L. Yeung 2d3886159f fix(cli): remove outdated help text 2023-01-31 06:45:03 +01:00
L. Yeung ceb869671e refactor(shell): use local variables in init scripts for Bash/Zsh 2023-01-31 06:45:03 +01:00
Jan De Dobbeleer a0931f84a4 fix(init): support Midnight Commander
resolves #3415
2023-01-29 13:57:48 +01:00
Jan De Dobbeleer a172c7a5ef feat: migrate v3 Nerd Font glyphs 2023-01-27 15:18:43 +01:00
Jan De Dobbeleer 8ba753e08c fix: remove segment from cache on empty template 2023-01-26 19:58:31 +01:00
Jan De Dobbeleer 51fd45dc60 feat(git): allow to exclude repo's from status fetching 2023-01-26 19:58:31 +01:00
Jan De Dobbeleer d124909912 fix(pwsh): cache tooltip command to avoid duplicate CLI calls
resolves #3394
2023-01-26 19:58:31 +01:00
Jan De Dobbeleer 481878262b feat: ignore empty header line on clear
relates to #3388
2023-01-25 16:14:41 +01:00
Jan De Dobbeleer 622e2071f1 feat: do not print initial newline
resolves #3388
2023-01-23 07:46:35 +01:00
Jan De Dobbeleer 522a216c00 feat: add .PromptCount
relates to #3388
2023-01-23 07:46:35 +01:00
Jan De Dobbeleer 07118352f6 fix(git): parse git@ url's correctly 2023-01-21 09:40:28 +01:00
Jan De Dobbeleer ca57311ef5 feat: add buf segment 2023-01-21 09:40:28 +01:00
Jan De Dobbeleer 25b29bc5bd fix(git): clean ssh remote url correctly
resolves #3378
2023-01-20 21:41:16 +01:00
Jan De Dobbeleer 19e0efc1fc fix(git): do not process remote when empty
resolves #3377
2023-01-20 21:41:16 +01:00
Jan De Dobbeleer 6fe030fd44 feat(config): support for 5 code point glyphs in export
relates to https://github.com/ryanoasis/nerd-fonts/issues/365#issuecomment-1398110379
2023-01-20 21:41:16 +01:00
L. Yeung 1a1aecbd36 fix(shell): split environment variable name and value correctly 2023-01-20 06:34:52 +01:00
Jan De Dobbeleer 759a90f4e4 feat(debug): color enabled/disabled 2023-01-17 18:49:53 +01:00
Jan De Dobbeleer 3ef7f1b481 chore(logs): pretty logs 2023-01-17 10:56:12 +01:00
Jan De Dobbeleer 8452b5b1e4 fix(ansi): do not end coloring on identical colors
resolves #3366
2023-01-14 11:03:34 +01:00
Jan De Dobbeleer cc3a64fad2 refactor(ansi): remove background color on transparent 2023-01-14 11:03:34 +01:00
Jan De Dobbeleer 8d8f2b8497 fix(git): fallback to origin for remote URL
resolves #3364
2023-01-14 11:03:34 +01:00
Jan De Dobbeleer 502bb3256b fix(images): strip transparent end from parser 2023-01-13 12:31:56 +01:00
Jan De Dobbeleer 4024632781 fix(config): use extension of remote config 2023-01-12 15:16:26 +01:00
Jan De Dobbeleer 1df98df6a6 feat(git): fallback to origin for remote url
relates to #3355
2023-01-12 15:16:26 +01:00
Jan De Dobbeleer cb7839090f fix(image): remove trailing ANSI clear sequence 2023-01-12 15:16:26 +01:00
Jan De Dobbeleer 4f83452e84 fix(hyperlink): use unique format to avoid conflicts
BREAKING CHANGE: this can cause existing manual hyperlinks
(`[text](link)`) to stop working. To fix, change those to
the following syntax: `«text»(link)`

resolves #3353
2023-01-12 10:01:16 +01:00
Jan De Dobbeleer 7ce487d6b1 fix(engine): always clear after every block write 2023-01-12 10:01:16 +01:00
Jan De Dobbeleer 9cd20f2764 fix(bash): escape rprompt
resolves #3347
2023-01-12 10:01:16 +01:00
David Courtney 822b7c755e feat: add mercurial segment 2023-01-11 15:25:11 +01:00
Jan De Dobbeleer 41f2716237 fix(cycle): initialize by default 2023-01-11 14:13:15 +01:00
Jan De Dobbeleer 7dbc3c96ea fix(cycle): cycle in a loop 2023-01-11 13:49:46 +01:00
David Hrdlička caa2481589 fix(elixir): match on *.exs files too
the `.exs` file extension is used for Elixir scripts, this also
includes project files and tests in Mix projects
2023-01-10 19:41:38 +01:00
Jan De Dobbeleer 86459f9a2f feat: cycle through colors
resolves #3327
2023-01-10 13:54:51 +01:00
Jan De Dobbeleer 6ca3d22b80 fix: adjust Azure DevOps icon
relates to #3336
2023-01-10 13:54:51 +01:00
Jan De Dobbeleer ef050bf023 fix(zsh): tooltip compatibility with oh-my-zsh 2023-01-10 13:54:51 +01:00
Jan De Dobbeleer a2353d93e7 feat: add vala segment
resolves #3329
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer 2751a243ef feat: add elixir segment
resolves #3314
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer 39594b0d34 fix(spotify): parse information correctly for PWA on Windows
resolves #3310
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer b8c09f92ab feat(git): add commit information
resolves #3331
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer 57bfb8a419 fix(pwd): do not print quotes
relates to #2515
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer f02017352d fix(fish): remove hyperlink escaping
relates to #3288
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer d4ebc71f9c fix(image): init writer before usage
resolves #3326
2023-01-08 10:43:42 +01:00
Jan De Dobbeleer cd4ca2bdf4 feat(shell): add a CLI timeout of 4 seconds
resolves 3332
2023-01-08 10:43:42 +01:00
Jan De Dobbeleer 5eb6e99ea3 fix(ansi): allow hyperlink overrides 2023-01-06 13:59:10 +01:00
Jan De Dobbeleer 85897ce9ec fix(ansi): append remaining hyperlink
resolves #3323
2023-01-06 13:59:10 +01:00
Jan De Dobbeleer 2b576a3cce fix(ansi): do not print clear colors
resolves #3321
2023-01-06 11:02:37 +01:00
Jan De Dobbeleer 62a1bf96da feat(git): allow adding own remote icons
resolves #3300
2023-01-06 08:14:05 +01:00
Jan De Dobbeleer 6f8733eacd refactor(git): use map for upstream icons 2023-01-06 08:14:05 +01:00
maxlandon 02c557f42e refactor(go): adapt imports for go.mod consistency 2023-01-06 07:48:14 +01:00
Jan De Dobbeleer b5bb060641 fix(compare): support int64
resolves #3309
2023-01-05 21:00:22 +01:00
Jan De Dobbeleer c1bf3a16fe refactor(ansi): do not print when invisible 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 850787cd6f refactor(ansi): write inverted colors correctly for transparency 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 0ebd59297b refactor(ansi): count text correctly 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer f1b1a72868 refactor: move hyperlink logic intro writer loop 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 59ddfc2ba1 refactor: remove unused function 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 48d8a522bf refactor: rename color module to ansi 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 005445b9fe refactor(ansi): rewrite ansi and writer 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer e957e5f8cc fix(fish): do not fix fish bug for hyperlinks 2023-01-02 20:09:08 +01:00
Jan De Dobbeleer 77d5c9ed95 refactor(ansi): do not allow plain GOOS override 2023-01-02 19:23:38 +01:00
Jan De Dobbeleer ce7b7f1501 fix(fish): different hyperlink format on linux 2023-01-02 18:36:13 +01:00
Jan De Dobbeleer 784b5f1492 fix(colors): fallback to transparent on empty colors
resolves #3276
2022-12-31 12:30:16 +01:00
maxlandon 3559254292 chore: do not load config options more than once
do not set options for the configuration when it already has been set

this allows several prompt engines being created in a single runtime
2022-12-30 20:04:48 +01:00
LNK LEO 6ae0af6853 fix(networks): get missing 2 bytes back in SSID 2022-12-30 16:17:17 +01:00
Jan De Dobbeleer cf4aa4ed62 fix(engine): always return a new writer for init
resolves #3268
2022-12-29 21:32:57 +01:00
NoF0rte 9d81f5a362 feat(style): segment style as a template string 2022-12-29 19:44:50 +01:00
NoF0rte 9e40a1a0dc feat: conditional segment styles 2022-12-29 19:44:50 +01:00
L. Yeung a3ef56f7fa fix(python): set home_enabled to false by default 2022-12-29 11:28:01 +01:00
Jan De Dobbeleer 023546fe37 chore(go): rename module 2022-12-28 20:17:59 +01:00
maxlandon 04bfb2eef1 feat: add segment writers at runtime 2022-12-28 20:17:59 +01:00
Jan De Dobbeleer 8cd8c9a7be feat(color): do not clear parent colors 2022-12-28 17:14:29 +01:00
Jan De Dobbeleer 60664e245a feat(git): remove stash and worktree count from template
they are now individual functions so they no longer need a switch
2022-12-28 17:14:29 +01:00
Jan De Dobbeleer dee040c719 fix(shell): lock template cache correctly 2022-12-28 17:14:29 +01:00
Jan De Dobbeleer 3cdb3bfc1d fix(shell): do not lock template cache
resolves #3254
2022-12-27 17:32:45 +01:00
Jan De Dobbeleer 07206e5aae feat(project): add always_enabled and project type 2022-12-27 15:53:31 +01:00
Jan De Dobbeleer 73e91eab5b fix(shell): lock template cache creation 2022-12-27 15:53:31 +01:00
Jan De Dobbeleer 2f1bf39253 feat(svn): exclude branch info from fetch_status
resolves #3252
2022-12-27 15:53:31 +01:00
Jan De Dobbeleer 9dd462c0d0 fix(engine): close Env after prompt generation
relates to #3244
2022-12-25 20:59:46 +01:00
Jan De Dobbeleer be803c838b fix(template): use correct cache key
resolves #3244
2022-12-25 20:59:46 +01:00
Michael Carman d9f59272f2 feat(svn): add counting of untracked files; don't default to counting as "unmerged" 2022-12-25 20:32:19 +01:00
Jan De Dobbeleer ed870295be fix(go): correct gopsutil dependency
resolves #3231
2022-12-21 19:34:30 +01:00
maxlandon edc02ddb48 refactor(engine): new instantiation function
this commit adds a function to instantiate a new prompt engine
to be used within a Go application (typically a readline shell)
2022-12-20 20:14:13 +01:00
Jan De Dobbeleer 2255f9fd44 feat(template): custom compare functions
resolves #3218
2022-12-18 15:02:57 +01:00
Jan De Dobbeleer 80b92505bc fix(template): remove the need for escaping a dot literal 2022-12-18 15:02:57 +01:00
Jan De Dobbeleer 2dc8dab25b feat(template): print actual error
relates to #3218
2022-12-18 15:02:57 +01:00
David Anthoff f965dc49aa
feat(project): add support for Julia 2022-12-18 14:55:57 +01:00
Jan De Dobbeleer 5047390bc4 fix(windows): build with app exe compatible fork 2022-12-16 13:49:13 +01:00
Jan De Dobbeleer 2b09eee61f chore(go): update dependencies 2022-12-14 15:50:57 +01:00
Jan De Dobbeleer 309b044174 fix(windows): revert use of virtual file system for Windows apps
the virtual file system is unable to detect the presence of an
AppExecLink, so we need to revert back to using the real file system
2022-12-10 11:31:46 +01:00
Jan De Dobbeleer 2cba140522 fix(warp): support rprompt 2022-12-08 11:37:04 +01:00
Jan De Dobbeleer 1e50107ff6 fix(warp): support newlines 2022-12-08 11:37:04 +01:00
L. Yeung 3dc8538136 feat(pwsh): make it compatible with NVS auto-switching 2022-12-07 14:11:14 +01:00
Jan De Dobbeleer fc80a8e11d fix(path): ignore empty root in full path
resolves #2962
2022-12-07 06:42:56 +01:00
Jan De Dobbeleer a86ab4f525 fix(color): validate number range 2022-12-06 21:31:00 +01:00
Jan De Dobbeleer 20462aa50f fix(colors): support 256 palette
resolves #3175
2022-12-06 20:30:40 +01:00
Jan De Dobbeleer a1801f717c chore(path): add home tests for mapped locations 2022-12-06 20:30:40 +01:00
Jan De Dobbeleer 8365aae504 feat: allow block to hide based on terminal width 2022-12-03 17:31:15 +01:00
mirsella 93f6576da0 feat: allow segments to hide based on terminal width 2022-12-03 11:20:06 +01:00
Lemorz56 acd4d01d4d feat: add gitversion segment 2022-11-30 12:51:08 +01:00
Jan De Dobbeleer b9dd5c18a8 feat(path): add RootDir property
relates to #3103
2022-11-28 20:38:43 +01:00
Ted Reed 1c7db480f9 feat(shell): osc51 support
working directory OSC for emacs-libvterm
2022-11-27 10:14:55 +01:00
Jan De Dobbeleer 389262edd0 fix(segment): only case non-alias
relates to #3103
2022-11-26 15:49:57 +01:00
Jan De Dobbeleer 35edf3a93d fix(path): use relative on empty root
relates to #2962
2022-11-26 15:49:57 +01:00
Jan De Dobbeleer 3bc9e83814 feat(os): support opensuse tumbleweed
resolves #3127
2022-11-26 15:49:57 +01:00
Jan De Dobbeleer c8fb6322eb feat(os): support for alma and rocky linux
resolves #3101
2022-11-25 13:37:21 +01:00
Jan De Dobbeleer 0d101537e6 fix(windows): writable should also look for group membership
resolves #3073
2022-11-24 11:42:08 +01:00
Jan De Dobbeleer 735d171b9f fix(windows): validate permissions for world
relates to #3073
2022-11-23 08:08:20 +01:00
Jan De Dobbeleer 931a78c9bb fix(shell): log platform correctly
relates to #3101
2022-11-22 20:48:09 +01:00
Gerben Welter 636a5e29fc
feat(os): add Redhat icon 2022-11-22 20:38:30 +01:00
Jan De Dobbeleer ef267a8f4c fix(init): show invalid config warning
resolves #3113
2022-11-22 20:37:42 +01:00
Jan De Dobbeleer f93f223f5e fix(init): lowercase shellname
relates to #3113
2022-11-22 20:37:42 +01:00
Albert Portnoy ee46cc2645 fix(fish): repaint tooltip on sigint 2022-11-21 19:36:03 +01:00
Jan De Dobbeleer 82f3400814 chore: remove prefix and postfix 2022-11-21 19:29:46 +01:00
Jan De Dobbeleer f1ffd3997a fix(windows): add additional access types and logs
relates to #3073
2022-11-21 19:29:46 +01:00
Jan De Dobbeleer 59c1c3f7ba refactor(debug): extract log from platform 2022-11-21 19:29:46 +01:00
Jan De Dobbeleer a5aad7b058 feat(templates): allow querying the segment cache
resolves #3103
2022-11-20 14:04:42 +01:00
Jan De Dobbeleer 0d8b8591cc fix(pid): cache PID from init
resolves #3096
2022-11-19 22:39:09 +01:00
Jan De Dobbeleer 877ac59f5f feat(cmd): toggle rprompt from configuration 2022-11-18 09:41:39 +01:00
Chris Antos 450ee25f77 fix(cmd): adjust an accidentally-global function 2022-11-18 09:41:39 +01:00
Chris Antos f2027173fb feat(cmd): revisions for async prompt
this uses caching for cwd, left prompt, right prompt, tooltip, tip
command, and the tooltip coroutine.

the effect is the prompt is always super responsive, except for the
first time after the current directory changes.

the tooltip coroutine is managed a bit differently, to handle some edge
cases a little better.
2022-11-18 09:41:39 +01:00
Chris Antos 9695f4d203 fix(cmd): do not leak global variable 2022-11-18 09:41:39 +01:00
Jan De Dobbeleer cd9c8b3e5d fix(fish): re-render rprompt when no tooltip is needed
resolves #3093
2022-11-18 09:35:25 +01:00
Jan De Dobbeleer 63bb1b4729 feat(cli): toggle segments on/off
resolves #3086
2022-11-17 20:58:00 +01:00
Justin Grote a17ea7b989
fix(pwsh): support additional debug prompt scenarios 2022-11-17 06:21:25 +01:00
Jan De Dobbeleer 54672cefdf feat(path): allow templates in mapped_locations
resolves #3084
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer f2d926b78c fix(templates): append remaining property on return
resolves #3085
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer f1e699f5b3 fix(hyperlink): parse links correctly
resolves #3082
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer 0ae2725481 fix(path): correct access logic
resolves #3073
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer 6ab687553d fix(connection): initialize as wifi
relates to #3077
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer c5362c8d2b docs: replace Twitter with Mastodon 2022-11-12 17:45:46 +01:00
Jan De Dobbeleer fa49c73238 fix(windows): restore wifi logic
resolves #3049
2022-11-11 20:23:52 +01:00
Jan De Dobbeleer 18f6db017a chore: rename environment to platform 2022-11-11 20:23:52 +01:00
Jan De Dobbeleer c0c230879a fix(fish): do not reload rprompt on empty tooltip
resolves #3053
2022-11-09 08:08:47 +01:00
Romain Chardiny ae4f8133ca feat(segment): add xmake 2022-11-05 20:10:01 +01:00
Jan De Dobbeleer 07acb9b0f6 fix(fish): collect commandline keyword after split
resolves #3042
2022-11-04 21:46:45 +01:00
Jan De Dobbeleer c156d17577 feat(path): replace child locations
relates to #2962
2022-11-04 21:03:36 +01:00
Jan De Dobbeleer efd4b7d832 fix(fish): split single string
resolves #3042
2022-11-04 21:03:36 +01:00
Jan De Dobbeleer 2609aa2aea fix(fish): do not hide tooltip on arguments
resolves #3037
2022-11-03 17:28:31 +01:00
Jan De Dobbeleer 6fea7ff017 feat(debug): add shell name 2022-11-03 17:28:31 +01:00
Jan De Dobbeleer 52b01aff63 refactor(shell): use fs instead of os for parent 2022-11-03 17:28:31 +01:00
Jan De Dobbeleer cbd6518faf feat(debug): allow adding directory 2022-11-03 17:28:31 +01:00
Jan De Dobbeleer fdb05d8407 feat(print): improve performance 2022-11-03 17:28:31 +01:00
Jan De Dobbeleer b73ac4bdc2 feat(init): improve performance 2022-11-03 17:28:31 +01:00
Jan De Dobbeleer 6b4c940880 fix(wsl): only fallback to .exe on WSL2
resolves #3024
2022-10-29 15:39:27 +02:00
Jan De Dobbeleer 19b870a1f7 fix(zsh): use correct key 2022-10-28 08:18:37 +02:00
Oleksandr Babieiev 7ae14646d7 feat(project): enhance project segment with .NET 2022-10-27 13:55:27 +02:00
Jan De Dobbeleer f74855fc3c fix(path): fallback to env.Pwd() for .Location
resolves #3010
2022-10-24 20:23:41 +02:00
Jan De Dobbeleer 972c3c1048 fix(zsh): add key binding conditionally 2022-10-24 16:53:28 +02:00
Jan De Dobbeleer 0e6cc95a0b fix(rust): optional version metadata
resolves #3001
2022-10-23 14:39:27 +02:00
Jan De Dobbeleer e884a6afe8 fix(zsh): remove non-standard keybindings
resolves #2999
2022-10-22 07:23:54 +02:00
Jan De Dobbeleer f73469533a fix(zsh): reintroduce home/end key bindings 2022-10-21 08:56:25 +02:00
Jan De Dobbeleer ae671c711d fix(templates): only match alphanumeric strings
relates to #2956
2022-10-19 20:58:55 +02:00
L. Yeung dbb5567d22
fix(nu): deprecate use of -c flag in term size 2022-10-19 20:16:36 +02:00
Jan De Dobbeleer a94ce52f98 fix(zsh): restore keybindings on transient prompt 2022-10-19 12:04:05 +02:00
Jan De Dobbeleer cad0a1be8f fix(pwsh): use literal path
relates to #2949
2022-10-19 12:04:05 +02:00
Jan De Dobbeleer e4d58213ec fix(path): use correct path for WSL conversion 2022-10-19 12:04:05 +02:00
Jan De Dobbeleer 6db3c8cfc2 feat(language): missing version info in .Error
resolves #2957
2022-10-18 20:06:16 +02:00
Jan De Dobbeleer ef8055eb08 fix(config): export default config
resolves #2961
2022-10-18 13:15:38 +02:00
Jan De Dobbeleer b174c27a5b fix(zsh): restore broken keybindings
relates to #2617
2022-10-18 13:15:38 +02:00
Jan De Dobbeleer dd5bc77576 feat(pwsh): allow disabling folder fallback
resolves #2949
2022-10-18 13:15:38 +02:00
Jan De Dobbeleer dee6d18baf fix(templates): do not replace a literal dot
resolves #2956
2022-10-17 20:21:18 +02:00
Jan De Dobbeleer 016dc50e72 fix(path): show separator for root drives
resolves #2954
2022-10-17 12:45:24 +02:00
Jan De Dobbeleer b5922ec0a4 fix(dependencies): update and fix gopsutil
closes #2947
2022-10-16 00:18:00 +02:00
Jan De Dobbeleer 3efa4df088 feat(palette): conditional palettes 2022-10-14 20:25:00 +02:00
Jan De Dobbeleer b533a27f21 fix(path): format root correctly 2022-10-14 08:46:14 +02:00
Jan De Dobbeleer 6bc0f888c2 fix(path): correct root on full style
resolves #2939
2022-10-14 08:46:14 +02:00
Jan De Dobbeleer 2cb5f24708 fix(path): correct path for env.DirIsWritable 2022-10-13 20:25:26 +02:00
Jan De Dobbeleer 9a98823166 fix(template): parse entire template
resolves #2937
2022-10-13 20:25:26 +02:00
Jan De Dobbeleer 040a73e0f0 feat(git): fetch remote on bare repo 2022-10-13 08:40:29 +02:00
Jan De Dobbeleer e0b28bd2c4 feat(git): disable bare repo's by default
relates to #2913
2022-10-13 08:40:29 +02:00
Jan De Dobbeleer 5a57d6909d fix(template): parse temnplates correctly
resolves #2928
2022-10-13 08:40:29 +02:00
Jan De Dobbeleer 6980cb55e7 feat: move default theme internally 2022-10-13 08:40:29 +02:00
Jan De Dobbeleer ac0ffec43a fix(path): remove duplicate logic
resolves #2923
2022-10-13 08:40:29 +02:00
Jan De Dobbeleer e45cd7ea17 feat(git): display when in bare repo 2022-10-10 09:01:11 +02:00
Jan De Dobbeleer d4a3dbb721 chore: default to go 1.19 2022-10-07 21:38:26 +02:00
Jan De Dobbeleer 0f7806e19e chore(go): update dependencies 2022-10-07 16:35:57 +02:00
Jan De Dobbeleer 55ed6c9f58 fix(pwsh): delegate manual flag on init 2022-10-06 14:04:35 +02:00
Jan De Dobbeleer 8a9a022baa refactor(wifi): do not query all networks 2022-10-05 16:16:17 +02:00
LNK LEO 4b6b128d74 feat(connection): new segment
BREAKING CHANGE: this will need a manual migration from the wifi
segment to the new connection segment.
2022-10-05 16:16:17 +02:00
LNK LEO 63e20bf53c feat(rust): add beta/dev/nightly to version string 2022-10-05 13:26:37 +02:00
Jan De Dobbeleer a7a59b8b01 revert(language): do not error when not installed
this reverts commit f23968a39c
as this was an incorrect solution to #2880, it can stay as is
2022-10-05 08:41:33 +02:00
Jan De Dobbeleer 266fc5671f fix(python): do not validate empty env 2022-10-05 08:41:33 +02:00
Jan De Dobbeleer ee130605db fix(pwsh): move HOME on invalid directory
resolves #2873
2022-10-04 19:59:12 +02:00
Jan De Dobbeleer f23968a39c fix(language): do not error when not installed
resolves #2871
2022-10-04 19:59:12 +02:00
L. Yeung 5b6a3470d1 fix(path): parse path correctly 2022-10-04 06:50:07 +02:00
Jan De Dobbeleer 94a379b26a feat(init): toggle auto config state with flag
resolves #2848
2022-10-03 13:02:42 +02:00
Jan De Dobbeleer 2f0bd54087 feat(templates): only fallthrough when template is set
resolves #2859
2022-10-03 07:04:50 +02:00
Jan De Dobbeleer 9653506e34 fix(path): correct mapped_locations logic
resolves #2839
2022-09-27 12:01:25 +02:00
Jan De Dobbeleer 7c7ce069e0 fix(path): only replace actual home folder
resolves #2832
2022-09-26 09:54:51 +02:00
Jan De Dobbeleer 56ae9e6fda feat(az): parse pwsh context from module output
this fixes an issue where using multiple powershell sessions with a
different Azure context would display the same context everywhere when
using Set-AzContext to switch between them

BREAKING CHANGE: this requires adding `$env:POSH_AZURE_ENABLED = $true`
to your PowerShell profile if you want to get the correct context
displayed in your prompt for Azure powershell
2022-09-26 08:23:03 +02:00
Carl in 't Veld a16f18f9ec fix(az): config directory folder order 2022-09-26 08:23:03 +02:00
Jan De Dobbeleer 66a55991f1 feat(nu): update for 0.68.1
resolves #2756
2022-09-25 19:49:56 +02:00
Jan De Dobbeleer 25fa43c1d3 feat(template): add regex support
resolves #2823
2022-09-25 09:31:43 +02:00
Jan De Dobbeleer 19bb8f99b9 feat(deno): add deno.json
relates to #2764
2022-09-23 21:19:47 +02:00
Jan De Dobbeleer 17572d7f3f feat(context): allow context setting where possible
relates to #2776
2022-09-23 21:19:47 +02:00
Jan De Dobbeleer 4554d31168 fix(get): add shell flag
resolves #2821
2022-09-23 10:22:40 +02:00
Jan De Dobbeleer 2429d46435 fix(cmd): toggle tooltips
resolves #2815
2022-09-23 08:46:12 +02:00
Jan De Dobbeleer babe425f3f fix(get): add shell 2022-09-23 08:46:12 +02:00
Jan De Dobbeleer b87a7f7da2 fix(poshgit): remove all references 2022-09-23 08:46:12 +02:00
Jan De Dobbeleer 1d244debed fix(gcp): correct path on Windows
resolves #2814
2022-09-23 08:46:12 +02:00
Jan De Dobbeleer 7ea921351f feat(gcp): remove .Error
aligns the segment with az and aws, relates to #2810

BREAKING CHANGE: this removes the .Error field from the segment template
which means anyone with a custom template in the gcp segment needs to
remove it from their template. The new default template is:

`" {{ .Project }} "`
2022-09-23 08:46:12 +02:00
Jan De Dobbeleer aecd8d6bfd feat(templates): segment alias
resolves #2811
2022-09-20 20:14:31 +02:00
Jan De Dobbeleer 0e25f1613c fix(gcp): align default template with az and aws
relates to #2810
2022-09-20 20:14:31 +02:00
Jan De Dobbeleer a7a7ebc662 fix(shell): return correct name for shims
resolves #2806
2022-09-18 19:40:26 +02:00
Jan De Dobbeleer c3c72b17b3 feat: deno segment
resolves #2764
2022-09-18 09:50:09 +02:00
L. Yeung 348cacc860 fix(pwsh): disable tooltips for ConstrainedLanguage mode 2022-09-17 17:49:57 +02:00
L. Yeung 7ebfc530fe fix(pwsh): disable transient prompt for ConstrainedLanguage mode 2022-09-17 10:27:06 +02:00
Jan De Dobbeleer 8d9fe9d3c8 fix(pwsh): ignore remove when in constrained language mode 2022-09-16 07:37:36 +02:00
Jan De Dobbeleer 4056729e8e feat(wsl): allow using native executable on shared drive
relates to #2097
2022-09-15 09:11:16 +02:00
Jan De Dobbeleer bb1235fe5d chore(go): bump dependencies 2022-09-14 08:49:42 +02:00
Jan De Dobbeleer 6bc6fa23aa fix(az): find config in all possible folders
resolves #2771
2022-09-12 19:40:31 +02:00
Jan De Dobbeleer 3ded4c00fc feat(posh-git): parse environment variable
BREAKING CHANGE: this removes the posh-git segment. To mitigate,
rename the posh-git segment to git.

In case you had a custom template, make sure to migrate to the git
segment's template. You can now also leverage the same logic and
properties as the git segment in both the text template and/or
color templates.
2022-09-07 18:04:41 +02:00
Jan De Dobbeleer 17f75fa1ff refactor(git): no leading space on branch status 2022-09-07 18:04:41 +02:00
Jan De Dobbeleer 8bab255361 chore: increase timeout for golangci-lint 2022-09-02 16:37:29 +02:00
Jan De Dobbeleer 52f4ae662d fix(ansi): return original text on [ only strings
resolves #2739
2022-09-02 16:37:29 +02:00
Jan De Dobbeleer 336f351b98 fix(link): allow multiple links in segment text 2022-09-02 10:04:22 +02:00
Jan De Dobbeleer 56a59a1b32 feat(git): add link to GitKraken 2022-09-02 10:04:22 +02:00
L. Yeung 5df8d89902 fix(path): map to default registry icon correctly 2022-09-01 11:02:14 +02:00
L. Yeung e5b3b00a43 fix(git): populate .Dir and .RepoName correctly 2022-09-01 11:02:14 +02:00
Jan De Dobbeleer 2a1fdffb73 fix(git): align git Dir with PWD 2022-08-31 12:06:48 +02:00
L. Yeung f04e22a5d1 fix(environment): check WSL shared path correctly 2022-08-30 15:25:40 +02:00
L. Yeung 0b77995d80 fix(scm): convert to Windows path with / instead of \ 2022-08-29 17:08:34 +02:00
L. Yeung 7e141fb5ec fix(environment): detect WSL shared path correctly 2022-08-29 10:57:12 +02:00
Jan De Dobbeleer c93d637128 fix(font): do not fail on non-admin for Windows 2022-08-29 08:27:31 +02:00
Jan De Dobbeleer 16d278ace3 refactor(font): do not notify on Windows
relates to #2690
2022-08-29 08:27:31 +02:00
Jan De Dobbeleer 8c7deb1ec2 chore(windows): remove asset files 2022-08-29 08:27:31 +02:00
Jan De Dobbeleer 4f9875a8bb fix(font): do not crash on enter
relates to #2690
2022-08-29 08:27:31 +02:00
Jan De Dobbeleer 4213be5190 fix(git): align .Dir with .PWD
no trailing /
2022-08-29 08:27:31 +02:00
Jan De Dobbeleer 199993b891 fix(wsl): only validate the mounted windows drive
resolves #2632
2022-08-28 18:59:10 +02:00
Jan De Dobbeleer 07eba99d6e feat(git): expose directory 2022-08-28 15:40:20 +02:00
L. Yeung c0935c87f2 fix(shell): escape special characters correctly 2022-08-28 08:35:54 +02:00
Jan De Dobbeleer dfae989782 fix(pwsh): escape backticks correctly 2022-08-27 21:56:30 +02:00
Jan De Dobbeleer eabe6b3a7a fix(bash): escape console title sequences
resolves #2702
2022-08-27 21:56:30 +02:00
Jan De Dobbeleer 4572a6a8b9 fix(fish): no transient on autosuggestion
resolves #2708
2022-08-27 21:56:30 +02:00
Jan De Dobbeleer 29c7a2751b feat(windows): manifest file 2022-08-26 22:28:26 +02:00
L. Yeung 2f4ebfc493 fix(nu): set initial execution time to 0 2022-08-25 07:46:06 +02:00
L. Yeung c120527696 fix(cmd): escape special characters in a tip 2022-08-23 11:13:28 +02:00
L. Yeung 4e25c7c1c9 feat(shell): perform cleanup for a new initialization 2022-08-22 18:57:01 +02:00
L. Yeung 8de89185e2 fix(cmd): do not evaluate execution time for an empty command 2022-08-20 18:37:24 +02:00
L. Yeung dbcfab3480 fix(pwsh): check presence of "posh-git" module 2022-08-18 17:24:35 +02:00
Jan De Dobbeleer 04f7528f55
fix(http): correct logic for authentication header 2022-08-18 08:50:56 +02:00
Stephen Judd f6ec503bbf
feat: add Google Cloud (gcp) segment 2022-08-17 18:12:18 +02:00
Jan De Dobbeleer 698cbc4135 fix(sysinfo): validate array before assignment
resolves #2672
2022-08-17 13:43:46 +02:00
Jan De Dobbeleer 32f1977bdc
feat(wakatime): parse url as template 2022-08-16 20:55:08 +02:00
Jan De Dobbeleer 5502acb585 feat(nx): show segment on nx.json presence 2022-08-13 13:41:28 +02:00
L. Yeung a64bc19698 fix(pwsh): pass --strict flag correctly in initialization 2022-08-10 16:27:34 +02:00
L. Yeung cc1850cfd1 revert(bash): use \001 and \002 as decoration wrapper
This reverts commit 4d1f8f4.
2022-08-10 13:21:00 +02:00
L. Yeung d5a8ec3285 fix(pwsh): set initial value for $script:ExecutionTime 2022-08-09 18:59:23 +02:00
L. Yeung 83c1af63b4 refactor(bash): simplify timer 2022-08-09 11:19:43 +02:00
Jan De Dobbeleer 3345017b2d fix(pwsh): validate execution time type
resolves #2633
2022-08-09 10:00:24 +02:00
Jan De Dobbeleer 4e992d48d1 fix(pwsh): set default value for ErrorCode
resolves #2633
2022-08-09 06:59:35 +02:00
L. Yeung db8eac7c5d fix(shell): quote paths properly in init scripts 2022-08-09 06:59:35 +02:00
Jan De Dobbeleer 210629fd26 feat: delete expired cache entries on init 2022-08-07 11:35:52 +02:00
Jan De Dobbeleer 929e460c4e refactor(ipify): use generic http request 2022-08-05 22:26:27 +02:00
Jan De Dobbeleer cccb502989 refactor: do generic http request 2022-08-05 22:26:27 +02:00
eduardo e307b2f706 feat(ipfy): add offline response 2022-08-05 12:59:55 +02:00
Jan De Dobbeleer 5f063e80f3 chore(lint): nolint should be written without leading space 2022-08-05 08:38:17 +02:00
Jan De Dobbeleer 35efd3cf00 feat: remove functions to enable prompt features 2022-08-05 08:38:17 +02:00
Jan De Dobbeleer 4d1f8f4ea0 refactor(bash): use \001 and \002 as decoration wrapper 2022-08-05 08:38:17 +02:00
Piotr Kalinowski a2533c8f5b fix(git): better cross-platform path resolution and tests
The simple filepath.IsAbs() is not enough on Windows, where the relative
path may start with a separator and should then be taken relative to the
volume name.

So, introduce resolveGitPath() helper function that will do the right
thing on both Windows and other systems. As a bonus, it returns paths
converted to slashes for ease of use with the rest of the git segment:
- Git for Windows uses only slashes.
- Slashes do work as a path separator on Windows anyway.
- Some tests in git segment still use (and rightfully so) slashes.

Add tests for resolveGitPath() on both types of systems and fix
TestEnableInWorktree using a system-dependent testing constant as a root
path.
2022-08-03 18:20:00 +02:00
Piotr Kalinowski 3895210ab3 fix(git): further fixes for submodule worktrees
filepath.Join() just concatenates paths. We have to check manually for
an absolute path and discard the first component to end up with the
correct path.

Also, fix the tests to demonstrate actual behaviour of git, not what
filepath.Join() was doing.

Additionally, note that on Windows git paths in gitdir use unix
separators, so search for `/worktrees/` instead of using system
separator, just like when processing all the other cases.
2022-08-03 18:20:00 +02:00
Jan De Dobbeleer d678265607 chore(font): execute HTTP requests with context 2022-08-03 18:03:04 +02:00
Jan De Dobbeleer 47265b1bc1 fix(path): map Parent correctly 2022-08-03 18:03:04 +02:00
Jan De Dobbeleer 18e23f93a8 chore: rename platform variables 2022-08-03 18:03:04 +02:00
Jan De Dobbeleer d5f87c81be feat: store template cache and reuse for extra prompts
resolves #2605
2022-08-03 18:03:04 +02:00
Jan De Dobbeleer 79e76c8f3f feat(path): get parent folder 2022-08-01 07:36:28 +02:00
Jan De Dobbeleer 9238f3adbf feat(owm): correct data type for temperature
resolves #2591
2022-07-29 13:44:38 +02:00
lnu 69856f4464 fix(ansi): correct osc7 typo
extra \ removed
2022-07-29 09:49:27 +02:00
Jan De Dobbeleer 7d0ac0a930 fix(ansi): correct osc7 format
relates to #2515
2022-07-29 08:51:50 +02:00