Adds spaces to allow for double with icons

Jonathan Hodgson 5 years ago
parent e6339143e1
commit e63c35329d
  1. 8
      shells/zsh/includes/promptconfig.zsh

@ -6,7 +6,7 @@
# Custom dir command # Custom dir command
prompt_dir(){ prompt_dir(){
homeIcon="" homeIcon=" "
wpPluginsIcon=".p." wpPluginsIcon=".p."
wpThemesIcon=".t." wpThemesIcon=".t."
siteIcon=" " siteIcon=" "
@ -16,7 +16,7 @@ prompt_dir(){
dropboxIcon="" dropboxIcon=""
seperator=" " seperator=" "
seperatorDual=" " seperatorDual=" "
root="$seperator" root=" $seperator"
# Gets the path. # Gets the path.
local current_path="$(print -P "%~")" local current_path="$(print -P "%~")"
@ -123,8 +123,8 @@ prompt_git(){
local tag="$(git describe --tags --exact-match HEAD 2> /dev/null)" local tag="$(git describe --tags --exact-match HEAD 2> /dev/null)"
local color="green" local color="green"
local ret="" local ret=""
[ -n "$branch" ] && ret="$branch " [ -n "$branch" ] && ret=" $branch "
[ -n "$tag" ] && ret+="$tag " [ -n "$tag" ] && ret+=" $tag "
[ -n "$ret" ] || ret="$(git rev-parse --short HEAD 2> /dev/null)" [ -n "$ret" ] || ret="$(git rev-parse --short HEAD 2> /dev/null)"
local repoTopLevel="$(command git rev-parse --show-toplevel 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) local untrackedFiles=$(command git ls-files --others --exclude-standard "${repoTopLevel}" 2> /dev/null)

Loading…
Cancel
Save