shell-things/upgrade.sh

29 lines
1.1 KiB
Bash
Raw Normal View History

2011-08-16 13:21:16 +02:00
#!/bin/bash
echo "Backing up files..."
touch ~/.bash_exports
2011-08-16 13:21:16 +02:00
cat ~/.bash_exports > ~/.bash_exports.old.backup
touch ~/.bash_profile
2011-08-16 13:21:16 +02:00
cat ~/.bash_profile > ~/.bash_profile.old.backup
touch ~/.bash_aliases
2011-08-16 13:21:16 +02:00
cat ~/.bash_aliases > ~/.bash_aliases.old.backup
touch ~/.bash_functions
2011-08-16 13:21:16 +02:00
cat ~/.bash_functions > ~/.bash_functions.old.backup
touch ~/.bashrc
2011-08-16 13:21:16 +02:00
cat ~/.bashrc > ~/.bashrc.old.backup
echo "Installing new files..."
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 "Not installing bash_exports, See content of that file:"
touch ~/.bash_exports
echo "-- Start of content of bash_exports --"
cat bash_exports
echo "-- End of content of bash_exports --"
touch ~/.bash_private_aliases
echo "Not installing bash_private_aliases. See content of that file:"
echo "-- start of content of bash_private_aliases"
cat bash_private_aliases
echo "-- end of content of bash_private_aliases --"
2011-08-16 13:39:39 +02:00
echo "Installation has been completed. You might now need to source your ~/.bashrc for changes to happen."