Add below code to the end of .p10k.zsh.
# Force p10k dir segment to display full $PWD instead of ~ function prompt_dir() { p10k segment -i '' -t "$PWD" }