Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 946 forks source link

Current directory not shown if DIR is unset #1352

Open romkatv opened 5 years ago

romkatv commented 5 years ago

This is on master.

docker run -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -e TERM -it --rm ubuntu bash -uexc '
  cd
  apt update && apt install -y zsh git
  git clone https://github.com/bhilburn/powerlevel9k.git
  echo "source ~/powerlevel9k/powerlevel9k.zsh-theme; unset PWD" >~/.zshrc
  exec zsh'

Actual:

actual

Expected:

expected

I know it's weird to unset PWD but it happens. Basic zsh prompt still shows the current directory in this case, so it's not entirely unreasable to expect it.