From bd04d75466ebaa8bcd2693d5981caf63bd303db9 Mon Sep 17 00:00:00 2001 From: Jrohy <1101400284jackie@gmail.com> Date: Tue, 25 Dec 2018 00:42:06 +0800 Subject: [PATCH] fix bug --- multi-v2ray.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multi-v2ray.sh b/multi-v2ray.sh index fe089247..413798c7 100644 --- a/multi-v2ray.sh +++ b/multi-v2ray.sh @@ -287,7 +287,7 @@ profileInit() { [[ -z $(grep multi-v2ray ~/$ENV_FILE) ]] && echo "export PYTHONPATH=$PYTHONPATH:$APP_PATH" >> ~/$ENV_FILE && source ~/$ENV_FILE # 加入v2ray tab补全环境变量 - [[ -z $(grep v2ray.bash ~/$ENV_FILE) ]] && echo "source /etc/bash_completion.d/v2ray.bash" >> ~/$ENV_FILE && source ~/$ENV_FILE + [[ -z $(echo $SHELL|grep zsh) && -z $(grep v2ray.bash ~/$ENV_FILE) ]] && echo "source /etc/bash_completion.d/v2ray.bash" >> ~/$ENV_FILE && source ~/$ENV_FILE #解决Python3中文显示问题 [[ -z $(grep PYTHONIOENCODING=utf-8 ~/$ENV_FILE) ]] && echo "export PYTHONIOENCODING=utf-8" >> ~/$ENV_FILE && source ~/$ENV_FILE