From 2c8ddb6a90c7868f3b4d0f379b707fd89fa654b8 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Wed, 7 Jan 2026 10:37:21 +0100 Subject: [PATCH 1/7] docs: mention that vscode installed via snap cannot use system fonts --- README.md | 5 +++++ font.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 22c68d62..7f073f3b 100644 --- a/README.md +++ b/README.md @@ -658,6 +658,11 @@ If you are using a different terminal, proceed with manual font installation. https://raw.githubusercontent.com/romkatv/powerlevel10k-media/389133fb8c9a2347929a23702ce3039aacc46c3d/visual-studio-code-font-settings.jpg) to see how it should look like or see [this issue]( https://github.com/romkatv/powerlevel10k/issues/671) for extra information. + + Note that software installed via [Snap](https://en.wikipedia.org/wiki/Snap_\(software\)) is + unable to use system fonts. If you've install Visual Studio Code vis Snap, remove it by running + `sudo snap remove code` and install the official `.deb` build from the + [Visual Studio Code website](https://code.visualstudio.com/Download). - **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select `MesloLGS NF Regular`. diff --git a/font.md b/font.md index cb49af46..7bc81b87 100644 --- a/font.md +++ b/font.md @@ -43,6 +43,11 @@ If you are using a different terminal, proceed with manual font installation. https://raw.githubusercontent.com/romkatv/powerlevel10k-media/389133fb8c9a2347929a23702ce3039aacc46c3d/visual-studio-code-font-settings.jpg) to see how it should look like or see [this issue]( https://github.com/romkatv/powerlevel10k/issues/671) for extra information. + + Note that software installed via [Snap](https://en.wikipedia.org/wiki/Snap_\(software\)) is + unable to use system fonts. If you've install Visual Studio Code vis Snap, remove it by running + `sudo snap remove code` and install the official `.deb` build from the + [Visual Studio Code website](https://code.visualstudio.com/Download). - **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select `MesloLGS NF Regular`. From efc9ddd9b615a0042b5bcc36f97f070ca6fdf09e Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Wed, 7 Jan 2026 10:38:02 +0100 Subject: [PATCH 2/7] docs: typo --- README.md | 2 +- font.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f073f3b..00b84cf3 100644 --- a/README.md +++ b/README.md @@ -660,7 +660,7 @@ If you are using a different terminal, proceed with manual font installation. https://github.com/romkatv/powerlevel10k/issues/671) for extra information. Note that software installed via [Snap](https://en.wikipedia.org/wiki/Snap_\(software\)) is - unable to use system fonts. If you've install Visual Studio Code vis Snap, remove it by running + unable to use system fonts. If you've install Visual Studio Code via Snap, remove it by running `sudo snap remove code` and install the official `.deb` build from the [Visual Studio Code website](https://code.visualstudio.com/Download). - **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the diff --git a/font.md b/font.md index 7bc81b87..f1a2abf3 100644 --- a/font.md +++ b/font.md @@ -45,7 +45,7 @@ If you are using a different terminal, proceed with manual font installation. https://github.com/romkatv/powerlevel10k/issues/671) for extra information. Note that software installed via [Snap](https://en.wikipedia.org/wiki/Snap_\(software\)) is - unable to use system fonts. If you've install Visual Studio Code vis Snap, remove it by running + unable to use system fonts. If you've install Visual Studio Code via Snap, remove it by running `sudo snap remove code` and install the official `.deb` build from the [Visual Studio Code website](https://code.visualstudio.com/Download). - **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the From 447d0b2e686c274bb81fb92ee2714a1e69606c75 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Thu, 22 Jan 2026 14:12:49 +0100 Subject: [PATCH 3/7] make realtime time update interval configurable (#2916) --- internal/p10k.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index f73dd208..443111f2 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3527,7 +3527,8 @@ _p9k_prompt_time_compute() { } _p9k_prompt_time_async() { - sleep 1 || true + zmodload zsh/mathfunc zsh/zselect || return + zselect -t $((int(ceil(_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC * 100)))) || true } _p9k_prompt_time_sync() { @@ -7809,8 +7810,10 @@ _p9k_init_params() { # commands will contain the start times of their commands as opposed to the default # behavior where they contain the end times of their preceding commands. _p9k_declare -b POWERLEVEL9K_TIME_UPDATE_ON_COMMAND 0 - # If set to true, time will update every second. + # If set to true, time will update every + # POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC seconds. _p9k_declare -b POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME 0 + _p9k_declare -F POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC 1 _p9k_declare -b POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH 0 typeset -g _p9k_nix_shell_cond='${IN_NIX_SHELL:#0}' From 3d2c72244d000db42178e56f4f979c4d98963220 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Thu, 22 Jan 2026 15:09:16 +0100 Subject: [PATCH 4/7] align realtime time updates to POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC (#2916) --- internal/p10k.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 443111f2..6abaa986 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3528,7 +3528,8 @@ _p9k_prompt_time_compute() { _p9k_prompt_time_async() { zmodload zsh/mathfunc zsh/zselect || return - zselect -t $((int(ceil(_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC * 100)))) || true + local -F t=_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC + zselect -t $((int(ceil(100 *(t - EPOCHREALTIME % t))))) || true } _p9k_prompt_time_sync() { @@ -7814,6 +7815,9 @@ _p9k_init_params() { # POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC seconds. _p9k_declare -b POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME 0 _p9k_declare -F POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC 1 + if (( _POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC <= 0 )); then + _POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC=1 + fi _p9k_declare -b POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH 0 typeset -g _p9k_nix_shell_cond='${IN_NIX_SHELL:#0}' From b97926675aba2d8465325d786cc69de9d9fdec84 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Thu, 22 Jan 2026 15:10:11 +0100 Subject: [PATCH 5/7] formatting --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 6abaa986..8d3b33a3 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3529,7 +3529,7 @@ _p9k_prompt_time_compute() { _p9k_prompt_time_async() { zmodload zsh/mathfunc zsh/zselect || return local -F t=_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC - zselect -t $((int(ceil(100 *(t - EPOCHREALTIME % t))))) || true + zselect -t $((int(ceil(100 * (t - EPOCHREALTIME % t))))) || true } _p9k_prompt_time_sync() { From 7178d3b275fbf5796c30d169873253af26b89942 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 28 Jan 2026 19:32:06 +0200 Subject: [PATCH 6/7] interpret also tofu as terraform (#2919) --- config/p10k-classic.zsh | 6 +++--- config/p10k-lean-8colors.zsh | 6 +++--- config/p10k-lean.zsh | 6 +++--- config/p10k-rainbow.zsh | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 623b9308..e31705bd 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -1377,7 +1377,7 @@ #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]# # Show aws only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show aws. - typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|tofu|pulumi|terragrunt' # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current AWS profile gets matched. @@ -1424,7 +1424,7 @@ ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]########## # Show azure only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show azure. - typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|tofu|pulumi|terragrunt' # POWERLEVEL9K_AZURE_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current azure account name gets matched. @@ -1503,7 +1503,7 @@ #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]# # Show google_app_cred only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show google_app_cred. - typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|tofu|pulumi|terragrunt' # Google application credentials classes for the purpose of using different colors, icons and # expansions with different credentials. diff --git a/config/p10k-lean-8colors.zsh b/config/p10k-lean-8colors.zsh index 3f72ff4b..3c0fecf8 100644 --- a/config/p10k-lean-8colors.zsh +++ b/config/p10k-lean-8colors.zsh @@ -1352,7 +1352,7 @@ #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]# # Show aws only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show aws. - typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|tofu|pulumi|terragrunt' # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current AWS profile gets matched. @@ -1399,7 +1399,7 @@ ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]########## # Show azure only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show azure. - typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|tofu|pulumi|terragrunt' # POWERLEVEL9K_AZURE_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current azure account name gets matched. @@ -1478,7 +1478,7 @@ #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]# # Show google_app_cred only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show google_app_cred. - typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|tofu|pulumi|terragrunt' # Google application credentials classes for the purpose of using different colors, icons and # expansions with different credentials. diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index cef70fd8..a20e1318 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -1352,7 +1352,7 @@ #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]# # Show aws only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show aws. - typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|tofu|pulumi|terragrunt' # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current AWS profile gets matched. @@ -1399,7 +1399,7 @@ ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]########## # Show azure only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show azure. - typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|tofu|pulumi|terragrunt' # POWERLEVEL9K_AZURE_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current azure account name gets matched. @@ -1478,7 +1478,7 @@ #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]# # Show google_app_cred only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show google_app_cred. - typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|tofu|pulumi|terragrunt' # Google application credentials classes for the purpose of using different colors, icons and # expansions with different credentials. diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index ed74b7fa..62b92637 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -1365,7 +1365,7 @@ # typeset -g POWERLEVEL9K_TERRAFORM_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' ################[ terraform_version: It shows active terraform version (https://www.terraform.io) ]################# - typeset -g POWERLEVEL9K_TERRAFORM_VERSION_SHOW_ON_COMMAND='terraform|tf' + typeset -g POWERLEVEL9K_TERRAFORM_VERSION_SHOW_ON_COMMAND='terraform|tf|tofu' #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]############# # Show kubecontext only when the command you are typing invokes one of these tools. @@ -1459,7 +1459,7 @@ #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]# # Show aws only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show aws. - typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|cdk|terraform|tofu|pulumi|terragrunt' # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current AWS profile gets matched. @@ -1508,7 +1508,7 @@ ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]########## # Show azure only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show azure. - typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|tofu|pulumi|terragrunt' # POWERLEVEL9K_AZURE_CLASSES is an array with even number of elements. The first element # in each pair defines a pattern against which the current azure account name gets matched. @@ -1590,7 +1590,7 @@ #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]# # Show google_app_cred only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show google_app_cred. - typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt' + typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|tofu|pulumi|terragrunt' # Google application credentials classes for the purpose of using different colors, icons and # expansions with different credentials. From 8ed1f58e082e1cce85e1d69235d1a906cf3c643e Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Wed, 28 Jan 2026 18:36:37 +0100 Subject: [PATCH 7/7] remove junk that has slipped in through 9f989151 (#1487) --- config/p10k-rainbow.zsh | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index 62b92637..730ef196 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -1364,9 +1364,6 @@ # Custom icon. # typeset -g POWERLEVEL9K_TERRAFORM_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' - ################[ terraform_version: It shows active terraform version (https://www.terraform.io) ]################# - typeset -g POWERLEVEL9K_TERRAFORM_VERSION_SHOW_ON_COMMAND='terraform|tf|tofu' - #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]############# # Show kubecontext only when the command you are typing invokes one of these tools. # Tip: Remove the next line to always show kubecontext.