obosdi-pkg/config/bash/bashrc

18 lines
527 B
Bash
Raw Normal View History

2015-08-20 14:37:06 -06:00
#!/bin/bash
. ./lib
if ( confirm "Replace /etc/skel/.bashrc ?\n\n(content of the file : source /etc/profile)" ) then
echo "source /etc/profile" > /etc/skel/.bashrc
fi
if ( confirm "Replace /root/.bashrc ?\n\n(content of the file : source /etc/profile)" ) then
echo "source /etc/profile" > /root/.bashrc
fi
items=$(ls /home/)
for item in $items; do
if ( confirm "Replace /home/$items/.bashrc ?\n\n(content of the file : source /etc/profile)" ) then
echo "source /etc/profile" > /home/$items/.bashrc
fi
done
exit 0