From e63c35329da0e4a10a9730c603aa43e9bd267d42 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 15 Apr 2020 15:00:57 +0100 Subject: [PATCH] Adds spaces to allow for double with icons --- shells/zsh/includes/promptconfig.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shells/zsh/includes/promptconfig.zsh b/shells/zsh/includes/promptconfig.zsh index c4b3bfd4..1e28d3f3 100644 --- a/shells/zsh/includes/promptconfig.zsh +++ b/shells/zsh/includes/promptconfig.zsh @@ -6,7 +6,7 @@ # Custom dir command prompt_dir(){ - homeIcon="" + homeIcon=" " wpPluginsIcon=".p." wpThemesIcon=".t." siteIcon=" " @@ -16,7 +16,7 @@ prompt_dir(){ dropboxIcon="" seperator="  " seperatorDual="  " - root="$seperator" + root=" $seperator" # Gets the path. local current_path="$(print -P "%~")" @@ -123,8 +123,8 @@ prompt_git(){ local tag="$(git describe --tags --exact-match HEAD 2> /dev/null)" local color="green" local ret="" - [ -n "$branch" ] && ret="$branch " - [ -n "$tag" ] && ret+="$tag " + [ -n "$branch" ] && ret=" $branch " + [ -n "$tag" ] && ret+=" $tag " [ -n "$ret" ] || ret="$(git rev-parse --short HEAD 2> /dev/null)" local repoTopLevel="$(command git rev-parse --show-toplevel 2> /dev/null)" local untrackedFiles=$(command git ls-files --others --exclude-standard "${repoTopLevel}" 2> /dev/null)