From 4e94bada3ccd9667d75c513f0148517a9562efda Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 6 Jun 2017 12:36:32 +0200 Subject: bugfix --- prompt_adam3_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prompt_adam3_setup') diff --git a/prompt_adam3_setup b/prompt_adam3_setup index 63d218a..ddfd4c1 100644 --- a/prompt_adam3_setup +++ b/prompt_adam3_setup @@ -66,7 +66,7 @@ prompt_adam3_precmd () { PS1="${prompt_adam3_PS1}" local prompt_adam3_PS1_length="${#${(S%%)prompt_adam3_PS1//(\%([KF1]|)\{*\}|\%[Bbkf])}}" - local prompt_adam3_PS1_etc=$(print -P "${(S%%)prompt_adam3_PS1//(\%([KF1]|)\{*\}|\%[Bbkf])}%~") + local prompt_adam3_PS1_etc=$(print -P "${(S%%)prompt_adam3_PS1//(\%([KF1]|)\{*\}|\%[Bbkf])}") local prompt_adam3_PS1_etc_length="${#prompt_adam3_PS1_etc}" # Changing the prompt based on the length of the prompt, should happen based -- cgit v1.2.3