From 2b9d9c7aaee71b6eeab56074b6a5790d45a74c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Schmidts?= Date: Wed, 17 Apr 2013 14:12:17 +0200 Subject: [PATCH] implementing default prompt mark as described in issue #135 --- liquidprompt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/liquidprompt b/liquidprompt index 3109433..b9f0937 100755 --- a/liquidprompt +++ b/liquidprompt @@ -227,6 +227,7 @@ _lp_source_config() LP_ENABLE_SSH_COLORS=${LP_ENABLE_SSH_COLORS:-0} LP_DISABLED_VCS_PATH=${LP_DISABLED_VCS_PATH:-""} + LP_MARK_DEFAULT=${LP_MARK_DEFAULT:-""} LP_MARK_BATTERY=${LP_MARK_BATTERY:-"⌁"} LP_MARK_ADAPTER=${LP_MARK_ADAPTER:-"⏚"} LP_MARK_LOAD=${LP_MARK_LOAD:-"⌂"} @@ -1251,9 +1252,12 @@ _lp_smart_mark() fi local mark - mark="\\\$" - if [[ "$_LP_WORKING_SHELL" == "zsh" ]]; then + if [[ -n "$LP_MARK_DEFAULT" ]]; then + mark=$LP_MARK_DEFAULT + elif [[ "$_LP_WORKING_SHELL" == "zsh" ]]; then mark="%(!.#.%%)" + else + mark="\\\$" fi if [[ "$1" == "git" ]]; then mark=$LP_MARK_GIT