Commit graph

397 commits

Author SHA1 Message Date
Stefan Hacker 7a73bcff0b feat: enable kubectl segment to read kubeconfig
This extends the kubectl segment to optionally not rely on the
kubectl command and instead to directly parse kubeconfig files like
kubectl does. This is meant as a performance optimization similar
to how the git segment can determine the current branch itself
without calling to git. Especially on Windows and in the presence
other factors slowing process creation like like AntiVirus this
can make shells using the segment considerably more responsive.

The functionality is enabled using the new parse_kubeconfig prop.
It defaults to false to prevent breaking existing users in case
there are any unanticipated behavioral changes.

Additionally the new template properties Cluster and User were
added as they are easily available and helpful in kubectl
setups with more elaborate configuration.
2021-11-26 18:22:40 +01:00
Jan De Dobbeleer eea4723520 chore(docs): update dependencies 2021-11-26 14:25:20 +01:00
Jan De Dobbeleer e81c71410a docs: fix homebrew doc import 2021-11-26 12:07:41 +01:00
Jan De Dobbeleer 09df670e07 refactor: use properties as map type 2021-11-26 11:11:07 +01:00
Jan De Dobbeleer 8e82d2b80c docs(linux): install via brew 2021-11-26 08:52:30 +01:00
Jan De Dobbeleer b94e96dd15 refactor(battery): remove legacy properties 2021-11-25 13:59:36 +01:00
Jan De Dobbeleer 4cbb3e6cf3 fix(winreg): fallback value on error or empty 2021-11-25 09:31:18 +01:00
Jan De Dobbeleer 30c82c2f56 chore(nightscout): add all object properties 2021-11-25 09:00:59 +01:00
lnu 8269148aab docs(wifi): fix config block
disable md013 for code blocks(md)
2021-11-25 07:33:43 +01:00
allcontributors[bot] f4a95ecd16 docs: update docs/docs/contributors.md [skip ci] 2021-11-24 23:30:16 +01:00
allcontributors[bot] 1503579695 docs: update docs/docs/contributors.md [skip ci] 2021-11-24 23:28:21 +01:00
allcontributors[bot] fd8313f804 docs: update docs/docs/contributors.md [skip ci] 2021-11-24 20:49:17 +01:00
Mike Sigsworth 43b68f1b44 docs(wifi): missed a colon 2021-11-24 20:47:27 +01:00
Jan De Dobbeleer 17751107a8 feat(windows): registry query segment 2021-11-24 14:24:02 +01:00
Mike Sigsworth 9232a039ec docs: added wifi docs and schema 2021-11-24 11:31:43 +01:00
Mike Sigsworth 4a68c444c6 feat(wifi): added wifi segment for windows and wsl 2021-11-24 11:31:43 +01:00
Scott Hanselman fd81f4a00c feat: nightscout segment 2021-11-24 11:05:06 +01:00
Yehor Borkov 9ecd7c09a4
feat(palette): a map of named color values
introducing a map of named standard color
values that can be referenced in theme segments
2021-11-22 15:25:56 +01:00
Jan De Dobbeleer 862d37bb7b docs: update contributing guide 2021-11-22 13:28:50 +01:00
Jan De Dobbeleer d422325f98 feat(pwsh): download executable from module 2021-11-22 11:53:28 +01:00
lnu 9f200a8930 ci: remove wsl executable from windows packages
for wsl, a manual install is required(linux install).
2021-11-22 10:49:41 +01:00
Jan De Dobbeleer f27868e260
docs: adjust broken link
closes #1259
2021-11-20 13:56:37 +01:00
Laurent Nullens a71d1f7454
feat(terraform): use template 2021-11-20 10:14:26 +00:00
Laurent Nullens e495a885a7 docs: sysinfo not ordered correctly in sidebar 2021-11-19 14:07:00 +01:00
lnu 25be370618 feat(sysinfo): sysinfo segment
cpu, mem, load, ...
2021-11-19 13:44:00 +01:00
Jan De Dobbeleer 79c5ad845f feat(cmd): transient prompt 2021-11-19 00:08:17 +01:00
Jan De Dobbeleer 5ddb0d8896 feat(cmd): add tooltip functionality 2021-11-19 00:08:17 +01:00
allcontributors[bot] ac7108309f docs: update docs/docs/contributors.md [skip ci] 2021-11-18 20:01:59 +01:00
Ted Ballou bcdfb8180b
feat(git): add symbol to the branch name when truncating 2021-11-18 19:58:57 +01:00
Jan De Dobbeleer f58567e015
docs(az): align sample with template functionality 2021-11-18 13:00:51 +01:00
Jan De Dobbeleer 366767accd
theme: replace \ufa1e with \ufbab
closes #1239
2021-11-16 16:46:40 +01:00
Jan De Dobbeleer cb1f48b56a docs: better layout for block and segment 2021-11-15 19:21:42 +01:00
Jan De Dobbeleer 290b1a3d8c fix(envvar): use template for string value 2021-11-15 13:28:53 +01:00
allcontributors[bot] 48d4eab026 docs: update docs/docs/contributors.md [skip ci] 2021-11-15 12:59:06 +01:00
allcontributors[bot] b8d65dfc6a docs: update docs/docs/contributors.md [skip ci] 2021-11-15 12:58:22 +01:00
Jan De Dobbeleer f850f3b805 feat(exit): add template properties 2021-11-15 11:39:34 +01:00
Jan De Dobbeleer f5aeed466e feat(executiontime): add template properties 2021-11-15 11:39:34 +01:00
Jan De Dobbeleer 2040771190 feat(env): add template properties 2021-11-15 11:39:34 +01:00
Jan De Dobbeleer e0c31470b7
docs(cmd): clean init command layout 2021-11-13 20:08:10 +01:00
Jan De Dobbeleer b3371136c7 feat(cmd): support Windows CMD 2021-11-13 19:41:42 +01:00
Jan De Dobbeleer 19544bff9b docs: informative layout 2021-11-12 19:16:40 +01:00
Jan De Dobbeleer 808bbcaca7 docs(color): update current color override information 2021-11-10 13:09:44 +01:00
allcontributors[bot] f0898058ff docs: update docs/docs/contributors.md [skip ci] 2021-11-09 21:24:36 +01:00
Jan De Dobbeleer 2d25c59c00 fix(git): remove Repo struct 2021-11-09 17:16:37 +01:00
Jan De Dobbeleer 7a5bccf101 fix(git): correct color templates functions 2021-11-09 13:26:59 +01:00
Jan De Dobbeleer bf16671587 refactor(git): add upstream icons 2021-11-09 13:26:59 +01:00
Jan De Dobbeleer d1ff9a96ce refactor: deprecate display_branch_status 2021-11-09 13:26:59 +01:00
Jan De Dobbeleer 0fbc8910bd chore: adjust powerline symbol to glyph 2021-11-09 13:26:59 +01:00
Jan De Dobbeleer ef3b620513 docs(git): correct property definitions 2021-11-09 13:26:59 +01:00
Rushabh Javeri 0620fdc474 docs(upgrading): broken themes link fixed 2021-11-09 13:02:22 +01:00