insertrc.sh 166 B

1234567891011
  1. rcfile="$HOME/bashrc"
  2. if [ -e "$HOME"/.zshrc ]; then
  3. rcfile="$HOME/.zshrc"
  4. fi
  5. cat >>"$rcfile" <<\EOF
  6. # insert baserc.sh
  7. . $HOME/baserc.sh
  8. EOF
  9. echo "插入成功"