.bashrc: outsourced custom configs to .bashrc.d/ This makes it easier among other things to not share everything
This commit is contained in:
parent
7b124fdd71
commit
a60fb1e5e3
2 changed files with 7 additions and 6 deletions
9
.bashrc
9
.bashrc
|
@ -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
|
||||
|
|
2
.bashrc.d/dotfiles.bashrc
Normal file
2
.bashrc.d/dotfiles.bashrc
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue