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

Disable/Hide all icons #1394

Closed royfrancis closed 4 years ago

royfrancis commented 4 years ago

I realised now that the icons take up too much space. Is there some way to disable/hide all icons?

romkatv commented 4 years ago

Nope.

royfrancis commented 4 years ago

So, hiding it individually it is.

Screenshot from 2020-02-08 16-43-17

POWERLEVEL9K_ANACONDA_LEFT_DELIMITER=""
POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER=""
POWERLEVEL9K_TIME_ICON=""
POWERLEVEL9K_LOAD_ICON=""
POWERLEVEL9K_RAM_ICON=""
POWERLEVEL9K_HOME_ICON=""
POWERLEVEL9K_HOME_SUB_ICON=""
POWERLEVEL9K_FOLDER_ICON=""
POWERLEVEL9K_PYTHON_ICON=""

Screenshot from 2020-02-08 16-45-31

romkatv commented 4 years ago

Yes, that's the only way.

There are also brutal approaches such as icons=() but it'll kill too much. All separators and even the trailing whitespace before cursor will be gone.

You also probably don't want to disable icons from segments that have no other content. For example, status and background_jobs can sometimes display nothing but an icon. If you disable the icon, it'll look very odd indeed.

tl;dr: What you do is the best you can do.