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启动时执行一次