Compare commits

...

4 Commits

Author SHA1 Message Date
Shaheen Gandhi f53ba880ac
Merge 44ade697bf into efc9ddd9b6 2026-01-15 13:30:50 +01:00
Roman Perepelitsa efc9ddd9b6 docs: typo 2026-01-07 10:38:02 +01:00
Roman Perepelitsa 2c8ddb6a90 docs: mention that vscode installed via snap cannot use system fonts 2026-01-07 10:37:21 +01:00
Shaheen Gandhi 44ade697bf ssh: optimize detection 2024-10-15 22:45:19 -07:00
3 changed files with 12 additions and 1 deletions

View File

@ -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 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
selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select
`MesloLGS NF Regular`.

View File

@ -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 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
selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select
`MesloLGS NF Regular`.

View File

@ -8487,7 +8487,8 @@ _p9k_init_ssh() {
# When changing user on a remote system, the $SSH_CONNECTION environment variable can be lost.
# Attempt detection via `who`.
(( $+commands[who] )) || return
[[ -z "$(command -v who)" ]] && return
#(( $+commands[who] )) || return
local ipv6='(([0-9a-fA-F]+:)|:){2,}[0-9a-fA-F]+' # Simplified, only checks partial pattern.
local ipv4='([0-9]{1,3}\.){3}[0-9]+' # Simplified, allows invalid ranges.