Commit graph

298 commits

Author SHA1 Message Date
Jan De Dobbeleer eaa28738e2 chore(go): update to go 1.21 2023-08-29 20:33:57 +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 0f8929ed13 feat(debug): print templates 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
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 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
Jan De Dobbeleer aacef4b186 feat: add quasar segment 2023-07-21 14:45: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
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
Jan De Dobbeleer d005bae4f4 feat: add version -v
resolves #4014
2023-07-02 21:11:01 +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
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
Jan De Dobbeleer ad2780f964 feat(path): add option to format folders 2023-06-13 20:22:42 +02: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
Jan De Dobbeleer dd68da8793 feat(git): fetch user information
resolves #3933
2023-06-06 08:06:00 +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 6d6efc2981 fix(upgrade): avoid duplicate HTTP requests 2023-05-19 20:51:51 +02: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
Alex Villarreal 192309a283 fix(node): remove leading space for PackageManagerIcon in node segment 2023-05-17 20:27:07 +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 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 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 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 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
Jan De Dobbeleer facc24d290 feat(path): add colored full path 2023-04-20 07:07:07 +02:00
Jan De Dobbeleer 794bd5ea09 fix(unity): handle index correctly
resolves #3711
2023-04-14 16:20:26 +02:00
Jan De Dobbeleer 2d0ee8c8ab feat(sapling): identify new repo without commits 2023-04-08 11:07:36 +02:00
Jason Zhang ddec1197df feat(argocd): add context segment 2023-04-07 10:00:49 +02:00
Jan De Dobbeleer e6a99c5a52 feat(exit): add exit codes 64­­–78
resolves #3658
2023-03-31 21:17:00 +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 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 6af47a61d5 feat(path): add powerlevel style
resolves #3607
2023-03-21 20:47:17 +01:00
Jan De Dobbeleer 3b1823682d chore(go): update dependency 2023-03-20 12:45:14 +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 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
Colt 8ac08ad9e9
fix(unity): output corrupt with CRLF line ending 2023-02-28 16:34:33 +01:00
Colt 1ceba7d603
feat: add Unity segment 2023-02-26 14:37:37 +00: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 dd32018836 feat: add sapling segment 2023-02-16 15:24:19 +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 565f53b117 fix(fish): do not use the iTerm segment 2023-02-05 21:51:16 +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 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 3ef7f1b481 chore(logs): pretty logs 2023-01-17 10:56:12 +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 1df98df6a6 feat(git): fallback to origin for remote url
relates to #3355
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
David Courtney 822b7c755e feat: add mercurial segment 2023-01-11 15:25:11 +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 6ca3d22b80 fix: adjust Azure DevOps icon
relates to #3336
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 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 005445b9fe refactor(ansi): rewrite ansi and writer 2023-01-05 17:54:32 +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
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 07206e5aae feat(project): add always_enabled and project type 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
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 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 fc80a8e11d fix(path): ignore empty root in full path
resolves #2962
2022-12-07 06:42:56 +01:00
Jan De Dobbeleer a1801f717c chore(path): add home tests for mapped locations 2022-12-06 20:30:40 +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
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
Gerben Welter 636a5e29fc
feat(os): add Redhat icon 2022-11-22 20:38:30 +01:00
Jan De Dobbeleer 59c1c3f7ba refactor(debug): extract log from platform 2022-11-21 19:29:46 +01:00