From f77e1845a8f0d5954b52cfafd9cd20240c830ff2 Mon Sep 17 00:00:00 2001 From: chicrobot Date: Mon, 10 Aug 2026 03:54:15 +0800 Subject: [PATCH] =?UTF-8?q?termux=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6ssh?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=EF=BC=8C=E6=98=AF=E5=88=99=E4=B8=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=90=AF=E5=8A=A8=E5=AE=89=E8=A3=85=E7=9A=84linux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 开机脚本.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/开机脚本.md b/开机脚本.md index 315b77f..63b44c7 100644 --- a/开机脚本.md +++ b/开机脚本.md @@ -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启动时执行一次