zsh icon indicating copy to clipboard operation
zsh copied to clipboard

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

Open siliconwitch opened this issue 2 years ago • 0 comments

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="-> "

``

siliconwitch avatar Aug 11 '22 12:08 siliconwitch