Files
termux/开机脚本.md

521 B

1、termux开机脚本

  1. ../usr/etc/motd欢迎消息
  2. ../usr/etc/bash.bashrc
echo -e "\e[1;35m"
echo "开机脚本:../usr/etc/bash.bashrc"
echo -e "\e[0m"
  1. ../home/.bashrc
echo -e "\e[1;35m"
echo "用户开机脚本:../home/.bashrc"
echo -e "\e[0m"

if  [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] ; then
    echo "当前是SSH连接"
else
    echo -e "启动tmoe安装的linux系统中...\n"
    debian
fi

2、 ubuntu开机脚本

  1. .zprofile,只在登录shell启动时执行一次
  2. .zshrc