diff options
author | Matthías Páll Gissurarson <mpg@mpg.is> | 2015-11-17 23:18:31 +0300 |
---|---|---|
committer | Matthías Páll Gissurarson <mpg@mpg.is> | 2015-11-19 03:04:52 +0300 |
commit | 231cfda8090d352ca378ea23967a19e2884d672e (patch) | |
tree | 78a9e750b3e3dfba4749b241e6650e7942b12ca5 | |
parent | b83cfd7515d5d6c0feaa9915f1a89a5d45a2c689 (diff) |
added icon to be able to set the end of the prompt explicitly
-rw-r--r-- | functions/icons.zsh | 3 | ||||
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh index fb2683b2..dd256b06 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -22,6 +22,7 @@ case $POWERLEVEL9K_MODE in icons=( LEFT_SEGMENT_SEPARATOR $'\UE0B0' # RIGHT_SEGMENT_SEPARATOR $'\UE0B2' # + LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace LEFT_SUBSEGMENT_SEPARATOR $'\UE0B1' # RIGHT_SUBSEGMENT_SEPARATOR $'\UE0B3' # CARRIAGE_RETURN_ICON $'\U21B5' # ↵ @@ -72,6 +73,7 @@ case $POWERLEVEL9K_MODE in icons=( LEFT_SEGMENT_SEPARATOR $'\UE0B0' # RIGHT_SEGMENT_SEPARATOR $'\UE0B2' # + LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace LEFT_SUBSEGMENT_SEPARATOR $'\UE0B1' # RIGHT_SUBSEGMENT_SEPARATOR $'\UE0B3' # CARRIAGE_RETURN_ICON $'\U21B5' # ↵ @@ -117,6 +119,7 @@ case $POWERLEVEL9K_MODE in icons=( LEFT_SEGMENT_SEPARATOR $'\uE0B0' # RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # + LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace LEFT_SUBSEGMENT_SEPARATOR $'\UE0B1' # RIGHT_SUBSEGMENT_SEPARATOR $'\UE0B3' # CARRIAGE_RETURN_ICON $'\U21B5' # ↵ diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index cdcb9a96..f9249da7 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -144,7 +144,7 @@ left_prompt_end() { else echo -n "%k" fi - echo -n "%f " + echo -n "%{%f%}$(print_icon 'LEFT_SEGMENT_END_SEPARATOR')" CURRENT_BG='' } |