diff --git a/setup-debian.sh b/setup-debian.sh index d985220..4686e5d 100644 --- a/setup-debian.sh +++ b/setup-debian.sh @@ -72,7 +72,7 @@ chmod +x /faronear/autostart.sh echo '>>> Autostart is set. You can "systemctl start/stop/status rc-local" to manage it.' echo "<<< Configure locales: install all-locales, default to zh-CN.UTF-8" -dpkg-reconfigure locales +sudo dpkg-reconfigure locales echo "<<< Debian System Setup Completed >>>" diff --git a/setup-home.sh b/setup-home.sh index 23b79d9..1862ccd 100644 --- a/setup-home.sh +++ b/setup-home.sh @@ -3,12 +3,32 @@ echo "Usage: setup.sh" echo "Example: setup.sh" -echo "######## 安装 ##################" -mv ~/.bashrc ~/.bashrc.backup +echo "######## Setting Home ##################" + +if [ -e ~/.emacs ] +then + mv ~/.emacs ~/.emacs.backup +if ln -s /faronear/lib/sysconfig/.emacs ~/ + +if [ -e ~/.emacs.lisp ] +then + mv ~/.emacs.lisp ~/.emacs.lisp.backup +if ln -s /faronear/lib/sysconfig/.emacs.lisp ~/ + +if [ -e ~/.bashrc ] +then + mv ~/.bashrc ~/.bashrc.backup +if ln -s /faronear/lib/sysconfig/.bashrc ~/ + +if [ -e ~/.bash_profile ] +then + mv ~/.bash_profile ~/.bash_profile.backup +if ln -s /faronear/lib/sysconfig/.bash_profile ~/ + . ~/.bashrc -git config --global credential.helper cache -echo "######## 完毕 ##################" + +echo "######## Home Setting Complete ##################"