my Linux shell dotfiles (.bashrc, .cshrc, .aliases.bash, .aliases.csh, etc.)
- NOTE: below assumes you have cloned this repo into your home directory under
~/settings
.
- Append following to your
~/.bashrc
to source this file, e.g.
# Source custom ~/settings/bashrc (if exists).
if [ -f ~/settings/bashrc ]; then
source ~/settings/bashrc
fi
- -or- Link
~/.bashrc
to this file under ~/settings/bashrc, e.g.
ln -s ~/settings/bashrc ~/.bashrc
- Append following to your
~/.bashrc
to source just the aliases, e.g.
# Source alias definitions (if exists).
if [ -f ~/settings/aliases.bash ]; then
source ~/settings/aliases.bash
fi
- Add following to your
~/.gitconfig
:
[include]
path = ~/settings/gitconfig
- Create symbolic link from
~/.vimrc
to file under~/settings/vimrc
, e.g.
ln -s ~/settings/vimrc ~/.vimrc