Closed logoff closed 4 years ago
Do you experience any issues with Powerlevel10k? If yes, please post your config, describe what you expect and what you observe.
I realize that your source uses both, ifconfig
and ip
... but I still don't see my VPN IP address, so I expose my case.
I use Tailscale as VPN service, so I edited this value:
POWERLEVEL9K_VPN_IP_INTERFACE=tailscale0
$ uname -a
Linux prodigy 5.4.0-26-generic #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ typeset -m 'POWERLEVEL9K_*|ZSH_VERSION|ZSH_PATCHLEVEL'
POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false
POWERLEVEL9K_ASDF_HASKELL_BACKGROUND=3
POWERLEVEL9K_OS_ICON_FOREGROUND=232
POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}'
POWERLEVEL9K_IP_BACKGROUND=4
POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_BATTERY_VERBOSE=false
POWERLEVEL9K_ASDF_RUBY_BACKGROUND=1
POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true
ZSH_PATCHLEVEL=ubuntu/5.8-3ubuntu1
POWERLEVEL9K_PHP_VERSION_BACKGROUND=5
POWERLEVEL9K_ASDF_NODEJS_BACKGROUND=2
POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION=✘
POWERLEVEL9K_NORDVPN_DISCONNECTING_VISUAL_IDENTIFIER_EXPANSION=''
POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=238
POWERLEVEL9K_CONTEXT_SUDO_CONTENT_EXPANSION=''
POWERLEVEL9K_DIR_MAX_LENGTH=80
POWERLEVEL9K_DIR_ANCHOR_BOLD=true
POWERLEVEL9K_LUAENV_SOURCES=( shell local global )
POWERLEVEL9K_STATUS_ERROR=false
POWERLEVEL9K_CONTEXT_BACKGROUND=0
POWERLEVEL9K_NORDVPN_DISCONNECTED_CONTENT_EXPANSION=''
POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=0
POWERLEVEL9K_CONTEXT_SUDO_VISUAL_IDENTIFIER_EXPANSION=''
POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
POWERLEVEL9K_CONTEXT_REMOTE_SUDO_TEMPLATE=%n@%m
POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER=''
POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX=''
POWERLEVEL9K_PROMPT_CHAR_OK_VIOWR_CONTENT_EXPANSION=▶
POWERLEVEL9K_OS_ICON_BACKGROUND=7
POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true
POWERLEVEL9K_ASDF_LUA_BACKGROUND=4
POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true
POWERLEVEL9K_DISABLE_HOT_RELOAD=true
POWERLEVEL9K_DIR_HYPERLINK=false
POWERLEVEL9K_VCS_STAGED_MAX_NUM=-1
POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false
POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=1
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( status command_execution_time background_jobs direnv asdf virtualenv anaconda pyenv goenv nodenv nvm nodeenv rbenv rvm fvm luaenv jenv plenv phpenv haskell_stack kubecontext terraform aws aws_eb_env azure gcloud google_app_cred context nordvpn ranger nnn vim_shell midnight_commander nix_shell load ram todo timewarrior taskwarrior time newline vpn_ip ip public_ip )
POWERLEVEL9K_GOENV_SHOW_SYSTEM=true
POWERLEVEL9K_PLENV_SOURCES=( shell local global )
POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE=%n@%m
POWERLEVEL9K_ASDF_PHP_FOREGROUND=0
POWERLEVEL9K_ASDF_JAVA_FOREGROUND=1
POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=''
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=''
POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=1
POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0'
POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=0
POWERLEVEL9K_CONTEXT_REMOTE_FOREGROUND=3
POWERLEVEL9K_NORDVPN_DISCONNECTING_CONTENT_EXPANSION=''
POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi'
POWERLEVEL9K_CONFIG_FILE=/home/logoff/.p10k.zsh
POWERLEVEL9K_JAVA_VERSION_FULL=false
POWERLEVEL9K_PHPENV_SOURCES=( shell local global )
POWERLEVEL9K_ASDF_GOLANG_BACKGROUND=4
POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
POWERLEVEL9K_CONTEXT_TEMPLATE=%n@%m
POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255
POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_IP_CONTENT_EXPANSION='${P9K_IP_RX_RATE:+⇣$P9K_IP_RX_RATE }${P9K_IP_TX_RATE:+⇡$P9K_IP_TX_RATE }$P9K_IP_IP'
POWERLEVEL9K_PROMPT_CHAR_ERROR_VIINS_CONTENT_EXPANSION=❯
POWERLEVEL9K_GOENV_SOURCES=( shell local global )
POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=( '*' DEFAULT )
POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=0
POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20
POWERLEVEL9K_PROMPT_CHAR_ERROR_VIINS_FOREGROUND=196
POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}'
ZSH_VERSION=5.8
POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi'
POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter()))+${my_git_format}}'
POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 '
POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\uE0BD '
POWERLEVEL9K_ASDF_PHP_BACKGROUND=5
POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=''
POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\%/%%}'
POWERLEVEL9K_VCS_BACKENDS=( git )
POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=4
POWERLEVEL9K_CONTEXT_REMOTE_TEMPLATE=%n@%m
POWERLEVEL9K_DIR_FOREGROUND=254
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=─
POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito'
POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=0
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX=%238F─╮
POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_ASDF_RUST_FOREGROUND=0
POWERLEVEL9K_CONTEXT_DEFAULT_CONTENT_EXPANSION=''
POWERLEVEL9K_PROMPT_CHAR_OK_VICMD_CONTENT_EXPANSION=❮
POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\uE0BD '
POWERLEVEL9K_SHORTEN_FOLDER_MARKER='(.bzr|.citc|.git|.hg|.node-version|.python-version|.go-version|.ruby-version|.lua-version|.java-version|.perl-version|.php-version|.tool-version|.shorten_folder_marker|.svn|.terraform|CVS|Cargo.toml|composer.json|go.mod|package.json|stack.yaml)'
POWERLEVEL9K_NODENV_SOURCES=( shell local global )
POWERLEVEL9K_NORDVPN_CONNECTING_CONTENT_EXPANSION=''
POWERLEVEL9K_RBENV_SOURCES=( shell local global )
POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX=%238F─╯
POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1
POWERLEVEL9K_ASDF_PYTHON_BACKGROUND=4
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
POWERLEVEL9K_VCS_CONFLICTED_MAX_NUM=-1
POWERLEVEL9K_ANACONDA_LEFT_DELIMITER=''
POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_STATUS_ERROR_PIPE=true
POWERLEVEL9K_VIRTUALENV_RIGHT_DELIMITER=''
POWERLEVEL9K_NODENV_SHOW_SYSTEM=true
POWERLEVEL9K_VI_MODE_FOREGROUND=0
POWERLEVEL9K_VCS_COMMITS_AHEAD_MAX_NUM=-1
POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=0
POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'
POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION=✘
POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true
POWERLEVEL9K_ASDF_PERL_FOREGROUND=0
POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL=▓▒░
POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false
POWERLEVEL9K_JENV_SHOW_SYSTEM=true
POWERLEVEL9K_PROMPT_CHAR_ERROR_VIOWR_CONTENT_EXPANSION=▶
POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=8
POWERLEVEL9K_PROMPT_CHAR_OK_VIVIS_FOREGROUND=76
POWERLEVEL9K_PROMPT_CHAR_OK_VIVIS_CONTENT_EXPANSION=Ⅴ
POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\%/%%}'
POWERLEVEL9K_ASDF_RUST_BACKGROUND=208
POWERLEVEL9K_SHORTEN_DELIMITER=''
POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true
POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40
POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95
POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs'
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( os_icon dir vcs newline prompt_char )
POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false
POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND=0
POWERLEVEL9K_RVM_SHOW_GEMSET=false
POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=''
POWERLEVEL9K_NODEENV_LEFT_DELIMITER=''
POWERLEVEL9K_NORDVPN_CONNECTING_VISUAL_IDENTIFIER_EXPANSION=''
POWERLEVEL9K_PROMPT_CHAR_OK_VIOWR_FOREGROUND=76
POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0
POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION=false
POWERLEVEL9K_VI_INSERT_MODE_STRING=''
POWERLEVEL9K_STATUS_OK=false
POWERLEVEL9K_ASDF_JAVA_BACKGROUND=7
POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60
POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_VCS_UNTRACKED_ICON='?'
POWERLEVEL9K_PROMPT_CHAR_OK_VICMD_FOREGROUND=76
POWERLEVEL9K_NORDVPN_DISCONNECTED_VISUAL_IDENTIFIER_EXPANSION=''
POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
POWERLEVEL9K_LARAVEL_VERSION_BACKGROUND=7
POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=''
POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
POWERLEVEL9K_ASDF_PERL_BACKGROUND=4
POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'
POWERLEVEL9K_ASDF_DOTNET_CORE_BACKGROUND=5
POWERLEVEL9K_ASDF_SOURCES=( shell local global )
POWERLEVEL9K_CONTEXT_REMOTE_BACKGROUND=0
POWERLEVEL9K_IP_FOREGROUND=0
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=''
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0BC '
POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
POWERLEVEL9K_VIRTUALENV_LEFT_DELIMITER=''
POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true
POWERLEVEL9K_ASDF_RUBY_FOREGROUND=0
POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE
POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi'
POWERLEVEL9K_VPN_IP_INTERFACE=tailscale0
POWERLEVEL9K_NODEENV_RIGHT_DELIMITER=''
POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=0
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX=''
POWERLEVEL9K_BATTERY_STAGES='\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578'
POWERLEVEL9K_VCS_UNTRACKED_MAX_NUM=-1
POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true
POWERLEVEL9K_STATUS_OK_PIPE=true
POWERLEVEL9K_MODE=nerdfont-complete
POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
POWERLEVEL9K_CONTEXT_REMOTE_SUDO_FOREGROUND=3
POWERLEVEL9K_LOAD_WHICH=5
POWERLEVEL9K_PROMPT_CHAR_ERROR_VICMD_CONTENT_EXPANSION=❮
POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false
POWERLEVEL9K_TERRAFORM_DEFAULT_BACKGROUND=0
POWERLEVEL9K_ICON_BEFORE_CONTENT=''
POWERLEVEL9K_ASDF_FOREGROUND=0
POWERLEVEL9K_ASDF_FLUTTER_BACKGROUND=4
POWERLEVEL9K_JENV_SOURCES=( shell local global )
POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}'
POWERLEVEL9K_RVM_SHOW_PREFIX=false
POWERLEVEL9K_ASDF_LUA_FOREGROUND=0
POWERLEVEL9K_BATTERY_CHARGED_FOREGROUND=2
POWERLEVEL9K_PYENV_SOURCES=( shell local global )
POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true
POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=4
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0BA '
POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'
POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=0
POWERLEVEL9K_KUBECONTEXT_CLASSES=( '*' DEFAULT )
POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90
POWERLEVEL9K_CONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION=''
POWERLEVEL9K_ASDF_ERLANG_BACKGROUND=1
POWERLEVEL9K_BATTERY_CHARGING_FOREGROUND=2
POWERLEVEL9K_PROMPT_CHAR_LEFT_LEFT_WHITESPACE=''
POWERLEVEL9K_JAVA_VERSION_FOREGROUND=1
POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL
POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB=''
POWERLEVEL9K_VPN_IP_SHOW_ALL=false
POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=3
POWERLEVEL9K_ASDF_SHOW_SYSTEM=true
POWERLEVEL9K_RBENV_SHOW_SYSTEM=true
POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false
POWERLEVEL9K_ASDF_POSTGRES_BACKGROUND=6
POWERLEVEL9K_DIR_SHOW_WRITABLE=true
POWERLEVEL9K_CONTEXT_REMOTE_SUDO_BACKGROUND=0
POWERLEVEL9K_INSTANT_PROMPT=verbose
POWERLEVEL9K_PROMPT_CHAR_ERROR_VIVIS_CONTENT_EXPANSION=Ⅴ
POWERLEVEL9K_TRANSIENT_PROMPT=always
POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=░▒▓
POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX=%238F─┤
POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION=✔
POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=0
POWERLEVEL9K_ASDF_BACKGROUND=7
POWERLEVEL9K_ICON_PADDING=moderate
POWERLEVEL9K_PROMPT_CHAR_ERROR_VIVIS_FOREGROUND=196
POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50
POWERLEVEL9K_VCS_UNSTAGED_MAX_NUM=-1
POWERLEVEL9K_PROMPT_CHAR_OK_VIINS_FOREGROUND=76
POWERLEVEL9K_TERRAFORM_CLASSES=( '*' DEFAULT )
POWERLEVEL9K_PROMPT_CHAR_LEFT_RIGHT_WHITESPACE=''
POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION=✘
POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
POWERLEVEL9K_PHP_VERSION_FOREGROUND=0
POWERLEVEL9K_ASDF_ELIXIR_BACKGROUND=5
POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=0
POWERLEVEL9K_PROMPT_CHAR_OK_VIINS_CONTENT_EXPANSION=❯
POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
POWERLEVEL9K_VCS_COMMITS_BEHIND_MAX_NUM=-1
POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION=✔
POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2'
POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3
POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true
POWERLEVEL9K_PROMPT_CHAR_ERROR_VIOWR_FOREGROUND=196
POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=2
POWERLEVEL9K_JAVA_VERSION_BACKGROUND=7
POWERLEVEL9K_IP_INTERFACE='e.*'
POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1
POWERLEVEL9K_PLENV_SHOW_SYSTEM=true
POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
POWERLEVEL9K_HASKELL_STACK_SOURCES=( shell local )
POWERLEVEL9K_CONTEXT_FOREGROUND=3
POWERLEVEL9K_PROMPT_CHAR_ERROR_VICMD_FOREGROUND=196
POWERLEVEL9K_AWS_CLASSES=( '*' DEFAULT )
POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL
POWERLEVEL9K_STATUS_EXTENDED_STATES=true
POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=250
What's the output of command ip -4 a show; typeset -p _p9k__vpn_ip_ips
? Feel free to censor (replace) parts of the output but don't delete anything.
mmm, it's curious, I see VPN IP address there:
❯ command ip -4 a show; typeset -p _p9k__vpn_ip_ips
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
inet 192.168.88.176/24 brd 192.168.88.255 scope global dynamic noprefixroute eno1
valid_lft 535sec preferred_lft 535sec
3: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
inet 100.74.43.98/10 scope global tailscale0
valid_lft forever preferred_lft forever
typeset -a _p9k__vpn_ip_ips=( 100.74.43.98 )
PD: only private addresses, nothing to worry or censor ;)
Please post a screenshot of your prompt.
Then type unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION; p10k reload
and post another screenshot of your prompt.
First screenshot:
Second screenshot:
It worked! I see this comment now in the source code. May I ask what's going on exactly?
Thank you!
May I ask what's going on exactly?
Here's the relevant part of your ~/.p10k.zsh
:
# When on VPN, show just an icon without the IP address.
# Tip: To display the private IP address when on VPN, remove the next line.
typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=
It does what the comment says.
ip link set dev tailscale0 down
.POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION
, then in addition to the icon you'll also see private network IP address when connected to VPN.Most users don't care about the private IP address. They only want an indicator showing whether they are on VPN right now or not. Hence by default only the icon is shown.
Some users do care about the private IP address, hence the option to display it. A few users care about all private IP addresses (from multiple network interfaces) -- there is POWERLEVEL9K_VPN_IP_SHOW_ALL
for that.
By the way, you prompt is misconfigured. When you ran p10k configure
, there was a question that asked whether all icons fit between crosses. Configuration wizard wanted to know whether icons in your terminal font are oversized or not. It looked like this:
Your font is monospace, so the icons did fit between crosses just like on the screenshot above. However, you've answered that question in the negative. As the result your prompt now has extraneous whitespace and mangled segment separators in right prompt.
To fix this problem you can either run p10k configure
and correctly answer the question about icon size, or manually replace POWERLEVEL9K_ICON_PADDING=moderate
with POWERLEVEL9K_ICON_PADDING=none
in ~/.p10k.zsh
.
Thank you for sch explanation!! I corrected my setup and configuration and everything is perfect now.
I'm using new Ubuntu Focal Fossa (20.04) and
ifconfig
is no longer available, because it was deprecated years ago. I recommend usingip
command instead of the oldifconfig
.References: