dotfiles/setup.sh

25 lines
503 B
Bash
Raw Normal View History

2022-12-28 15:38:02 -05:00
rm ../../.bash* ../../.profile /root/.bash* /etc/nanorc
2022-12-17 12:37:42 -05:00
ln ./.bash* /root
ln ./.bash* ../../
2022-12-27 19:34:08 -05:00
ln ./.profile ../../
2022-12-17 12:42:26 -05:00
2022-12-28 15:38:02 -05:00
rm /root/.bashrc /root/.profile
2022-12-17 12:42:26 -05:00
cp .bashrc /root
2022-12-28 15:38:02 -05:00
cp .profile /root
2022-12-17 12:42:26 -05:00
2022-12-17 01:22:43 -05:00
cat << EOF >> /root/.bashrc
2022-12-28 15:38:02 -05:00
2023-01-22 12:06:52 -05:00
PS1='\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ '
2022-12-17 01:22:43 -05:00
EOF
2022-12-17 12:49:30 -05:00
ln ./nanorc /etc/nanorc
2023-01-08 10:40:46 -05:00
2023-01-22 12:06:52 -05:00
if [ -f ~/git/dotfiles/.env ] ; then
source ./setenv.sh
2023-01-08 10:40:46 -05:00
rm /etc/sudoers.d/user
2023-01-22 12:06:52 -05:00
echo "$USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/user
2023-01-08 10:40:46 -05:00
fi
echo "Install fzf, log out and log back in"