removed copying functions, no need anymore
This commit is contained in:
parent
ee267c0c50
commit
2913920987
@ -29,10 +29,6 @@ _help() {
|
|||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
_bash_overrides() {
|
|
||||||
cp -r bashrc_overrides ~/.bashrc_overrides
|
|
||||||
}
|
|
||||||
|
|
||||||
_bashrc_ref() {
|
_bashrc_ref() {
|
||||||
echo "#REF:bashrc_overrides:REF" >> ~/.bashrc
|
echo "#REF:bashrc_overrides:REF" >> ~/.bashrc
|
||||||
echo ". ${THIS}/bashrc_overrides/_all" >> ~/.bashrc
|
echo ". ${THIS}/bashrc_overrides/_all" >> ~/.bashrc
|
||||||
@ -41,14 +37,11 @@ _bashrc_ref() {
|
|||||||
_main() {
|
_main() {
|
||||||
_arguments "$@"
|
_arguments "$@"
|
||||||
|
|
||||||
if [ "${FORCE}" = true ]; then
|
if [ ! -z "$(grep "#REF:bashrc_overrides:REF" ~/.bashrc)" ]; then
|
||||||
_bash_overrides
|
|
||||||
elif [ ! -z "$(grep "#REF:bashrc_overrides:REF" ~/.bashrc)" ]; then
|
|
||||||
echo "bash overrides already in place"
|
echo "bash overrides already in place"
|
||||||
echo "skipping..."
|
echo "skipping..."
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
_bash_overrides
|
|
||||||
_bashrc_ref
|
_bashrc_ref
|
||||||
echo "bash overrides added"
|
echo "bash overrides added"
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user