2011-08-16 13:21:16 +02:00
|
|
|
#!/bin/bash
|
|
|
|
echo "Backing up files..."
|
2011-08-18 13:47:01 +02:00
|
|
|
touch ~/.bash_exports
|
2011-08-16 13:21:16 +02:00
|
|
|
cat ~/.bash_exports > ~/.bash_exports.old.backup
|
2011-08-18 13:47:01 +02:00
|
|
|
touch ~/.bash_profile
|
2011-08-16 13:21:16 +02:00
|
|
|
cat ~/.bash_profile > ~/.bash_profile.old.backup
|
2011-08-18 13:47:01 +02:00
|
|
|
touch ~/.bash_aliases
|
2011-08-16 13:21:16 +02:00
|
|
|
cat ~/.bash_aliases > ~/.bash_aliases.old.backup
|
2011-08-18 13:47:01 +02:00
|
|
|
touch ~/.bash_functions
|
2011-08-16 13:21:16 +02:00
|
|
|
cat ~/.bash_functions > ~/.bash_functions.old.backup
|
2011-08-18 13:47:01 +02:00
|
|
|
touch ~/.bashrc
|
2011-08-16 13:21:16 +02:00
|
|
|
cat ~/.bashrc > ~/.bashrc.old.backup
|
|
|
|
echo "Installing new files..."
|
|
|
|
cat bash_exports > ~/.bash_exports
|
|
|
|
cat bash_profile > ~/.bash_profile
|
|
|
|
cat bash_aliases > ~/.bash_aliases
|
|
|
|
cat bash_functions > ~/.bash_functions
|
2011-08-16 13:39:39 +02:00
|
|
|
cat bashrc > ~/.bashrc
|
|
|
|
echo "Installation has been completed. You might now need to source your ~/.bashrc for changes to happen."
|