fix: bad shell integrations for zsh/fish (#189)

Signed-off-by: Chapman Pendery <cpendery@vt.edu>
This commit is contained in:
Chapman Pendery
2024-03-05 22:31:27 -08:00
committed by GitHub
parent 31920b1011
commit b1777aa909
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ __is_update_cwd() {
__is_update_prompt() {
__is_prior_prompt="$PS1"
if [ $ISTERM_TESTING == "1" ]; then
__is_prior_prompt = "> "
if [[ $ISTERM_TESTING == "1" ]]; then
__is_prior_prompt="> "
fi
PS1="%{$(__is_prompt_start)%}$PS1%{$(__is_prompt_end)%}"
}
+1 -1
View File
@@ -12,7 +12,7 @@ function __is_update_cwd --on-event fish_prompt; set __is_cwd (__is_escape_value
__is_copy_function fish_prompt is_user_prompt
if [ "$ISTERM_TESTING" == "1" ]
if [ "$ISTERM_TESTING" = "1" ]
function is_user_prompt; printf '> '; end
end