Commit Graph

353 Commits

Author SHA1 Message Date
Alejandro Gandara f717a91f55 * Added new module for showing in prompt the active terraform version.
* Prompt shows, the terraform version in this format: Terraform v0.12.13 . If only if a valid terraform command is used, or an alias to it.

The use case: We have a need to constantly change between terraform versions depending on what project we are working on, it is easy to by mistake upgrade the wrong project to the latest terraform version. This is why the prompt is shown in red as soon as you type terraform, this is a good way to remind you to double check this is the terraform version you want to use.

Future improvements:
Detect current terraform version by checking the terraform workspace state version, and change the terraform color prompt from red to green if you're using the same version.
2021-07-14 22:52:22 +01:00
Chris Williams 1e7be00e04
show kubecontext show for 'flux' (#1480)
Support for flux v2 CLI

Co-authored-by: Chris Williams <chris.williams@amwell.com>
2021-07-09 08:46:18 -07:00
Roman Perepelitsa 4ba3c010f6 display "wip" in git status if the latest commit's summary contains "wip" or "WIP" (#1425) 2021-06-08 11:47:19 +02:00
Roman Perepelitsa c7ad00b5a5 add P9K_AWS_PROFILE and P9K_AWS_REGION and use it in default configs 2021-05-28 14:55:27 +02:00
Alex Jurkiewicz aa4d366341 Add region support for aws element 2021-05-28 14:25:39 +10:00
Roman Perepelitsa 69d3650958 hide python version in pyenv in lean/classic/rainbow if the rest of the content starts with it (#1376) 2021-05-22 12:09:13 +02:00
Maxim Baz 9c034101fe
Add xplr segment (#1396) 2021-05-15 04:37:58 -07:00
Roman Perepelitsa f924646194 add P9K_IP_{RX,TX}_BYTES_DELTA to the list of parameters available within POWERLEVEL9K_IP_CONTENT_EXPANSION (#1392) 2021-05-14 11:41:56 +02:00
Roman Perepelitsa d28e84ca70 don't display git tag when on a branch (#1294) 2021-03-09 12:20:28 +01:00
bcochofel 3920940ea8
add fluxctl and stern to show kubecontext (#1268) 2021-02-21 21:03:14 +01:00
Dhananjay Tanpure d26bdcd601
Added wlan(w) to regular expression of network interfaces. (#1224)
Name of network interface is generally wlan0 or wlp3s0.
2021-01-15 18:20:46 +01:00
Julio Carlos Barrera Juez 33f20f5eae
Add tailscale in VPN network interface regex. (#1208) 2021-01-09 23:49:12 +01:00
Roman Perepelitsa 59db4252bb uncomment BACKGROUND and FOREGROUND parameters in p10k-classic.zsh; comments confuse users (#1182) 2020-12-24 05:52:27 +01:00
Samuel Gräfenstein 38a5492b5f
Remove trailing whitespace (#1173) 2020-12-20 16:28:52 +01:00
Roman Perepelitsa a5d0525c6a refactor my_git_formatter to make it easier to change it so that tag is always displayed 2020-12-20 07:54:27 +01:00
Roman Perepelitsa fc854fa719 fix a comment above POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION in lean style 2020-12-18 08:40:26 +01:00
Roman Perepelitsa 439ce3ed4e dir: add _NON_EXISTENT similarly to _NON_WRITABLE (requires POWERLEVEL9K_DIR_SHOW_WRITABLE=v3)
See #1160.
2020-12-14 08:01:05 +01:00
Felix Yan 31ede3c1d3
Correct some typos in zsh conf (#1119) 2020-11-22 19:02:27 +01:00
Roman Perepelitsa 54d40b924c support POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=if-different; see #730 2020-09-09 12:10:26 +02:00
Lucas Larson 12cef82077
repair spelling of "occurrences" (#998) 2020-09-07 22:30:55 +02:00
Roman Perepelitsa 622130980c add scalaenv prompt segment; see #991 2020-09-03 10:53:19 +02:00
Roman Perepelitsa 6c8c6eea1b typo in comments 2020-09-02 09:24:58 +02:00
Roman Perepelitsa cababbeee2 wifi on linux: fix bugs and speed things up 2020-09-01 11:03:55 +02:00
Roman Perepelitsa 2a4c962c21 add "gpd" to the list of default VPN network interfaces; see #979 2020-08-27 08:15:13 +02:00
Roman Perepelitsa 6279aa57d7 add k9s, helmfile and terragrunt to some SHOW_ON_COMMAND params; #904 2020-08-24 09:02:52 +02:00
Roman Perepelitsa dca8774f1b add an empty line after the branch/tag truncation logic 2020-08-22 09:35:48 +02:00
Roman Perepelitsa 711490252e enable extended_glob in p10k-{pure,robbyrussell}.zsh to fix `unset -m` 2020-08-21 11:08:14 +02:00
Roman Perepelitsa 6dfd92f8c1 allow optional offset in POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER; see #896 2020-07-18 10:43:49 +02:00
Henry Bley-Vroman 34952e4a85
Fix POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD comments (#880) 2020-07-11 22:53:38 +02:00
Roman Perepelitsa 0c341b6702 Merge branch 'ancarpan-terraform-show-default' 2020-07-04 08:08:49 +02:00
Andrea Carpani 882cede0ae Add option to show terraform workspace even if it's default 2020-07-03 19:05:48 +02:00
mundry d394a4e038
Fix typo in config comment. (#836)
Co-authored-by: mundry <mundry@users.noreply.github.com>
2020-06-21 11:04:23 +02:00
Roman Perepelitsa faa510d54c explicitly mention that POWERLEVEL9K_ASDF_${TOOL}_FOREGROUND overrides POWERLEVEL9K_ASDF_FOREGROUND; see #817 2020-06-12 13:00:03 +02:00
Roman Perepelitsa a43b1b34d8 add an icon and asdf colors for julia; see #817 2020-06-12 12:55:02 +02:00
Roman Perepelitsa e3f582f246 survive people explicitly disabling conda prompt and then expecting to see it 2020-06-09 21:33:10 +02:00
Roman Perepelitsa 7760aa66d7 don't unset POWERLEVEL9K_GITSTATUS_DIR in config templates 2020-06-03 18:30:40 +02:00
Roman Perepelitsa 189ecf8e16 remove traling ")" from conda even if it is not followed by space 2020-05-30 18:48:03 +02:00
romkatv 644488afcc change the default anaconda format in config templates
Also document how to configure it.

See #762.
2020-05-25 07:31:19 +02:00
romkatv be83ec430c replace Ⅴ (roman numeral 5) with V (ascii); see #754 2020-05-23 14:20:37 +02:00
romkatv 6998d06a91 pyenv: display python version alongside environment name if unequal
See #730.
2020-05-18 07:14:08 +02:00
romkatv f96c1eb5e5 add POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false to config templates
See #730.
2020-05-18 07:06:41 +02:00
romkatv 6c83ace41c uncomment POWERLEVEL9K_DIR_BACKGROUND 2020-05-17 08:28:02 +02:00
romkatv 3ddb8025d5 fix POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN example 2020-05-14 12:06:46 +02:00
romkatv 459af1f238 allow dir styling based on the pair: $PWD and whether it's writable
fixes #678
2020-05-02 13:36:40 +02:00
romkatv 7c4b0f36c0 support POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=first; see #669 2020-04-28 21:14:06 +02:00
romkatv aca2f19fa3 define POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND in rainbow and classic config templates (see #655) 2020-04-25 16:39:24 +02:00
romkatv 681f504d8a unset DEFAULT_USER in generated .p10k.zsh; see #640 2020-04-20 17:27:59 +02:00
romkatv 9d462b0ba9 add a tip for disabling git branch truncation 2020-04-09 10:33:03 +02:00
romkatv ddc47993a2 add POWERLEVEL9K_CONFIG_FILE 2020-04-05 07:25:10 +02:00
romkatv b80a4254b7 disable vi_mode if prompt_char is enabled; see #584 2020-03-25 11:08:23 +01:00
romkatv a7594e103e Merge branch 'gcloud' 2020-03-22 16:19:09 +01:00
romkatv 34158d5c30 make os_icon non-bold even in lean style 2020-03-22 15:48:01 +01:00
romkatv 90d19e6f97 enable the display of project name in gcloud segment
Details:
https://github.com/romkatv/powerlevel10k/issues/318#issuecomment-602037792
2020-03-21 18:11:44 +01:00
Marko Kaznovac af4f7a5890
fix typo: disk_usgae (#574) 2020-03-21 06:58:12 +01:00
romkatv 6f9ae0fd17 make os_icon non-bold 2020-03-20 18:33:18 +01:00
romkatv e4e165f6d7 simplify configs
- use POWERLEVEL9K_ICON_PADDING instead of
  POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION to customize padding after
  icons
- remove reliance on UTF-8 locale when the config is being sourced
2020-03-13 10:34:50 +01:00
romkatv 3eaa7acb50 spello 2020-03-10 10:09:49 +01:00
romkatv db1e12bce3 add `package` prompt segment 2020-03-09 17:38:52 +01:00
romkatv 1cd33e5445 better color selection one-liners (see #554) 2020-03-07 09:13:55 +01:00
romkatv c9c607369c add POWERLEVEL9K_*ENV_SHOW_SYSTEM to config templates 2020-03-06 16:48:21 +01:00
romkatv cdb856e374 add POWERLEVEL9K_NODENV_SOURCES to config templates 2020-03-05 16:14:39 +01:00
Roman Perepelitsa a8cdc46a15
Add 'kogito' to POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND (#546)
Signed-off-by: David Ward <dward@redhat.com>
2020-03-04 20:35:00 +01:00
romkatv 945643bcab add istioctl to POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND in all config templates 2020-03-03 09:25:56 +01:00
romkatv 04d19d031a add stack.yaml to the list of folder markers 2020-02-29 12:16:28 +01:00
romkatv dc8070219f add styling for asdf/haskell 2020-02-29 12:13:53 +01:00
romkatv 18701f4e49 add haskell_stack prompt segment (#535) 2020-02-29 12:10:58 +01:00
romkatv 4499e2069b add java_version to config templates (disabled by default) 2020-02-28 11:28:43 +01:00
romkatv 92757e5a8d replace color 232 with 0 in lean-8colors 2020-02-27 14:58:44 +01:00
romkatv 112648acb1 more robust locale workaround in configs 2020-02-27 14:38:29 +01:00
romkatv e84b20901c s/ASDF_GO/ASDF_GOLANG/
Fixes #529.
2020-02-27 08:11:58 +01:00
romkatv 27d018bc20 add POWERLEVEL9K_VPN_IP_SHOW_ALL; see #518 2020-02-24 14:29:26 +01:00
romkatv 1885d15da2 set P9K_IP_TX_RATE and P9K_IP_RX_RATE to empty instead of 0 when unable to get the real values 2020-02-24 12:15:58 +01:00
romkatv 6f6c9b457e bug fix: add a space before arrows in pure style; fixes #517 2020-02-21 15:30:54 +01:00
romkatv 678733c68f pure style: move context to the left; upstream: https://github.com/sindresorhus/pure/pull/530 2020-02-21 11:14:06 +01:00
romkatv 8cf22480c0 add taskwarrior prompt segment; see #511 2020-02-20 16:24:41 +01:00
romkatv 65c4ae4abf grey Git status in robbyrussell while loading 2020-02-16 17:38:55 +01:00
romkatv 53c63c9dfc add robbyrussell theme emulation config 2020-02-15 18:52:36 +01:00
romkatv 0e04538c38 add laravel_version to config templates 2020-02-15 14:49:18 +01:00
romkatv b8a949498f add php configuration for asdf 2020-02-15 13:50:28 +01:00
romkatv d34f3dd983 comments 2020-02-15 13:48:01 +01:00
romkatv 9a3263fbe5 add php_version to config templates; see #499 2020-02-15 13:47:11 +01:00
romkatv 245a420499 add phpenv prompt segment; see #499 2020-02-15 13:38:44 +01:00
romkatv c5782e9dab add SHOW_ON_UPGLOB parameters for asdf to config templates; see #485 2020-02-12 16:26:35 +01:00
romkatv eb3ddadc6c add POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~' to config templates 2020-02-11 13:14:04 +01:00
romkatv 7c8e7d960c add POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to config templates and display "─" if worktree scan was skipped 2020-02-10 18:08:09 +01:00
Gibson Fahnestock d37cf22a9c show VCS_STATUS_PUSH_COMMITS_{AHEAD,BEHIND} in vcs by default
Fixes #395.
2020-02-09 15:45:33 +01:00
romkatv a0f4447b60 add hide-related asdf parameters to config templates 2020-02-07 12:12:38 +01:00
romkatv af42857637 add custom colors for several asdf tools: erlang, elixir, postgres 2020-02-07 09:16:55 +01:00
romkatv 50318c0250 add POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER to config templates 2020-02-06 17:18:40 +01:00
romkatv f509a16bbb add asdf to config templates (enabled by default) 2020-02-06 16:49:30 +01:00
romkatv 73e24180a0 add `ip` to config templates 2020-02-05 17:26:28 +01:00
romkatv 637752ef7b comments 2020-02-03 12:04:04 +01:00
romkatv 71f4eade9f add wifi prompt segment 2020-02-03 11:47:55 +01:00
romkatv 4599ad9f2c add extra options to pure style
- non-permanent content location (left or right)
- show current time
- prompt height (one or two lines)
- prompt spacing (with empty line between prompts or without)
2020-02-02 06:49:17 +01:00
romkatv b6cb9618a8 spelling and cleanup 2020-01-31 15:18:39 +01:00
romkatv b0a08e0ae5 Merge branch 'master' into tour 2020-01-31 10:53:40 +01:00
romkatv f91597fe7b speed up terraform, add classes to configs, bump version 2020-01-31 10:52:34 +01:00
romkatv d800fd5f41 rewrite the color faq; move omz p9k migration instructions to faq 2020-01-30 12:57:28 +01:00
romkatv 3354789278 Merge branch 'master' into tour 2020-01-30 09:32:36 +01:00
romkatv 73878f398a add nix_shell prompt segment; see #448 2020-01-30 08:25:24 +01:00