dracula / zsh

🧛🏻‍♂️ Dark theme for ZSH
https://draculatheme.com/zsh
MIT License
267 stars 70 forks source link

Moved the space after the arrow icon to be in the arrow variable #49

Closed siliconwitch closed 2 years ago

siliconwitch commented 2 years ago

I wanted to remove the arrow in my configuration by setting DRACULA_ARROW_ICON="", however, the current behavior always inserts a space between the arrow and the current working directory.

Screenshot 2022-08-11 at 13 41 51

I moved the space to be a part of the arrow variable itself rather than within the print function. Now you can do this:

Screenshot 2022-08-11 at 13 43 31

The original behavior is the same. However users will have to update their custom DRACULA_ARROW_ICON variable to include a space if they want it.

Screenshot 2022-08-11 at 13 43 58

The README in fact already matches this

### Status Segment Indicator

The status segment indicator (the arrow at the beginning), can be changed by setting the `DRACULA_ARROW_ICON` variable. For example, to use an ASCII '->':

``sh
 DRACULA_ARROW_ICON="-> "

``
avalonwilliams commented 2 years ago

Thanks for this! I'll merge it right away