From f38e463b3c744e1e1598ac713c575cdf705419d6 Mon Sep 17 00:00:00 2001 From: Kanstantsin Kamkou Date: Wed, 31 Dec 2014 13:39:05 +0700 Subject: [PATCH] Close #100 PR: PURE_PROMPT_SYMBOL added. --- pure.zsh | 2 +- readme.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pure.zsh b/pure.zsh index 59cd13b..3c414c9 100644 --- a/pure.zsh +++ b/pure.zsh @@ -121,7 +121,7 @@ prompt_pure_setup() { [[ $UID -eq 0 ]] && prompt_pure_username='%F{white}%n%F{242}@%m ' # prompt turns red if the previous command didn't exit with 0 - PROMPT='%(?.%F{magenta}.%F{red})❯%f ' + PROMPT="%(?.%F{magenta}.%F{red})${PURE_PROMPT_SYMBOL:-❯}%f " } prompt_pure_setup "$@" diff --git a/readme.md b/readme.md index 787e97d..02d2077 100644 --- a/readme.md +++ b/readme.md @@ -89,6 +89,10 @@ Set `PURE_GIT_PULL=0` to prevent Pure from checking whether the current Git remo Set `PURE_GIT_UNTRACKED_DIRTY=0` to not include untracked files in dirtiness check. Only really useful on extremely huge repos like the WebKit repo. +### `PURE_PROMPT_SYMBOL` + +Defines the prompt symbol. The default value is `❯`. + ## Example ```sh