termux判断是否ssh连接,是则不自动启动安装的linux

This commit is contained in:
2026-08-10 03:54:15 +08:00
parent cdd3fc4ce7
commit f77e1845a8
+8 -3
View File
@@ -9,10 +9,15 @@ echo -e "\e[0m"
3. ../home/.bashrc
```
echo -e "\e[1;35m"
echo "开机脚本:../home/.bashrc"
echo "用户开机脚本:../home/.bashrc"
echo -e "\e[0m"
echo -e "启动tmoe安装的linux系统中..."
debian
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] ; then
echo "当前是SSH连接"
else
echo -e "启动tmoe安装的linux系统中...\n"
debian
fi
```
# 2、 ubuntu开机脚本
1. .zprofile,只在登录shell启动时执行一次