From 864951b928479187e561b0be4860fff58402ae5c Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Fri, 3 Sep 2021 15:58:06 +0530 Subject: [PATCH] Remove TODO --- templates/bash.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/bash.txt b/templates/bash.txt index 30af325..409cd53 100644 --- a/templates/bash.txt +++ b/templates/bash.txt @@ -55,10 +55,9 @@ function __zoxide_hook() { {%- endmatch %} -# TODO -{# bash throws an error if $PROMPT_COMMAND contains two semicolons in sequence. - # This is hard to avoid perfectly, but adding __zoxide_hook to the front of - # $PROMPT_COMMAND rather than the back makes this scenario unlikely. -#} +{# $PROMPT_COMMAND cannot contain two semicolons in sequence. It can end with a + # semicolon, but it cannot start with one. Therefore, always put the hook + # at the start of $PROMPT_COMMAND. -#} # Initialize hook. if [ "${__zoxide_hooked}" != '1' ]; then