dotfiles/setup.sh
2023-01-08 10:40:46 -05:00

23 lines
505 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='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
EOF
ln ./nanorc /etc/nanorc
if [ "$1" != null ] ; then
rm /etc/sudoers.d/user
echo "$1 ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/user
fi
echo "Install fzf, log out and log back in"