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
|
|
|
|
2022-12-17 00:47:26 -05:00
|
|
|
PS1='${debian_chroot:+($debian_chroot)}\[\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
|
|
|
|
|
|
|
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"
|