mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-08-05 13:43:30 -07:00
fix: bad shell integrations for zsh/fish (#189)
Signed-off-by: Chapman Pendery <cpendery@vt.edu>
This commit is contained in:
@@ -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)%}"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user