-
Backup your
.bashrc
, if any:mv -v ~/.bashrc ~/.bashrc.bak
-
Clone the repository to your local machine:
git clone --depth=1 https://github.com/ndachj/dotf; cd dotf
-
Copy the
.config/bash
directory to~/.config
:export BDOTDIR="$HOME/.config/bash" mkdir -p $BDOTDIR cp -rv .config/bash ~/.config
-
Symlink
.profile
to~/.bash_profile
:ln -sf "$BDOTDIR/.profile" ~/.bash_profile
-
Change the default login shell:
sudo chsh ${USER} -s /bin/bash
-
Now logout and login back for changes to take effect.
-
git-completion.bash
~/.config/bash ├── .bashrc ├── git-completion.bash └── git-prompt.sh
To uninstall bash config
-
Remove the
$BDOTDIR
and.bash_profile
:rm -rfv "$BDOTDIR" ~/.bash_profile
-
Then restore your original
.bashrc
:mv ~/.bashrc.bak ~/.bashrc