This repository has been archived on 2022-02-20. You can view files and clone it, but cannot push or open issues/pull-requests.
bash-shell-base/setup/fetch.sh

17 lines
789 B
Bash
Executable File

#!/bin/bash
mkdir -p $BASH_SHELL_BASE/setup/etc/profile.d
mkdir -p $BASH_SHELL_BASE/setup/user
mkdir -p $BASH_SHELL_BASE/setup/root
cp -vi /etc/profile $BASH_SHELL_BASE/setup/etc
cp -vi /etc/bash.bashrc $BASH_SHELL_BASE/setup/etc
cp -vi /etc/profile.d/02-root.sh $BASH_SHELL_BASE/setup/etc/profile.d
cp -vi /etc/profile.d/03-startup.sh $BASH_SHELL_BASE/setup/etc/profile.d
cp -vi $HOME/.bash_profile $BASH_SHELL_BASE/setup/user
cp -vi $HOME/.profile $BASH_SHELL_BASE/setup/user
cp -vi $HOME/.bashrc $BASH_SHELL_BASE/setup/user
cp -vi $HOME/.bash_logout $BASH_SHELL_BASE/setup/user
cp -vi /root/.bash_profile $BASH_SHELL_BASE/setup/root
cp -vi /root/.profile $BASH_SHELL_BASE/setup/root
cp -vi /root/.bashrc $BASH_SHELL_BASE/setup/root
cp -vi /root/.bash_logout $BASH_SHELL_BASE/setup/root