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 948 forks source link

Add option to hide TIME_ICON and DATE_ICON in time/date segments #1294

Closed fishpen0 closed 5 years ago

fishpen0 commented 5 years ago

I recently updated to a newer version of powerlevel9k and now this little clock icon takes up a ton of space on my shell and I can't remove it by editing the POWERLEVEL9K_TIME_FORMAT string since its appended after that is defined.

https://github.com/bhilburn/powerlevel9k/blob/6d116ab24b974cc8271eaf33c755a916a6f462e4/powerlevel9k.zsh-theme#L1302-L1309

I'd like to hide it with a flag, something like POWERLEVEL9K_TIME_DISABLE_ICON=1 in my zshrc. Possibly add the same option for the date segment.

romkatv commented 5 years ago

Try this:

POWERLEVEL9K_TIME_ICON=""
fishpen0 commented 5 years ago

That worked, thanks! I'll close this.

romkatv commented 5 years ago

@fishpen0 I noticed in your dotfiles that you are using a custom prompt segment for kubernetes status instead of the standard kubecontext from p9k. Why is that, if you don't mind my asking?