mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-16 16:29:23 +01:00
23 lines
812 B
Bash
Executable File
23 lines
812 B
Bash
Executable File
#!/bin/bash
|
|
echo "Backing up files..."
|
|
touch ~/.bash_exports
|
|
cat ~/.bash_exports > ~/.bash_exports.old.backup
|
|
touch ~/.bash_profile
|
|
cat ~/.bash_profile > ~/.bash_profile.old.backup
|
|
touch ~/.bash_aliases
|
|
cat ~/.bash_aliases > ~/.bash_aliases.old.backup
|
|
touch ~/.bash_functions
|
|
cat ~/.bash_functions > ~/.bash_functions.old.backup
|
|
touch ~/.bashrc
|
|
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
|
|
cat bashrc > ~/.bashrc
|
|
touch ~/.bash_private_aliases
|
|
echo "Not installing bash_private_aliases. See content of that file:"
|
|
cat bash_private_aliases
|
|
echo "Installation has been completed. You might now need to source your ~/.bashrc for changes to happen."
|