dotfiles/setup.sh
2023-01-22 12:06:52 -05:00

25 lines
503 B
Bash

rm ../../.bash* ../../.profile /root/.bash* /etc/nanorc
ln ./.bash* /root
ln ./.bash* ../../
ln ./.profile ../../
rm /root/.bashrc /root/.profile
cp .bashrc /root
cp .profile /root
cat << EOF >> /root/.bashrc
PS1='\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ '
EOF
ln ./nanorc /etc/nanorc
if [ -f ~/git/dotfiles/.env ] ; then
source ./setenv.sh
rm /etc/sudoers.d/user
echo "$USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/user
fi
echo "Install fzf, log out and log back in"