obosdi/config/bash/bashrc
2015-07-19 03:41:24 +02:00

17 lines
527 B
Bash
Executable file

#!/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