.bashrc: outsourced custom configs to .bashrc.d/ This makes it easier among other things to not share everything

This commit is contained in:
Gregor Bückendorf 2018-12-03 13:39:22 +01:00
parent 7b124fdd71
commit a60fb1e5e3
2 changed files with 7 additions and 6 deletions

View file

@ -5,8 +5,7 @@ if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
alias dotfiles="git -c include.path=$HOME/.dotfiles/dotgit_config --git-dir=$HOME/.dotgit/ --work-tree=$HOME"
# I should later write this as a function that checks for the existence of a
# venv subdirectory
alias activate="source venv/bin/activate"
# Source .bashrc.d
for file in ~/.bashrc.d/*.bashrc; do
. "$file"
done

View file

@ -0,0 +1,2 @@
alias dotfiles="git -c include.path=$HOME/.dotfiles/dotgit_config --git-dir=$HOME/.dotgit/ --work-tree=$HOME"
complete -o bashdefault -o default -o nospace -F __git_wrap__git_main dotfiles