setup 574 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. TMP=$(which bash)
  3. if [ "x$TMP" = "x" ]; then
  4. echo 本程序运行前需要先安装 bash/tmux/TinTin++。
  5. exit
  6. fi
  7. export SHELL=$TMP
  8. TMP=$(which tmux)
  9. if [ "x$TMP" = "x" ]; then
  10. echo 本程序运行前需要先安装 bash/tmux/TinTin++。
  11. exit
  12. fi
  13. TMP=$(which tt++)
  14. if [ "x$TMP" = "x" ]; then
  15. echo 本程序运行前需要先安装 bash/tmux/TinTin++。
  16. exit
  17. fi
  18. export HOME=$(pwd)
  19. export PATH=$HOME/bin:$PATH
  20. export TMUXCMD="tmux -L MUD -f $HOME/tmux.conf"
  21. test -f .bash_profile || ln -s profile.sh .bash_profile
  22. exec bash -l