From 1b9707b7647a6e337109362dd2c91238a889991e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20B=C3=BCckendorf?= Date: Sun, 2 Dec 2018 21:53:03 +0100 Subject: [PATCH] Initial commit. Added bashrc with alias for for the bare dotfiles git repo and a custom gitconfig for the dotfiles alias --- .bashrc | 12 ++++++++++++ .dotfiles/dotgit_config | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 .bashrc create mode 100644 .dotfiles/dotgit_config diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..e954ea3 --- /dev/null +++ b/.bashrc @@ -0,0 +1,12 @@ +# .bashrc + +# Source global definitions +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" diff --git a/.dotfiles/dotgit_config b/.dotfiles/dotgit_config new file mode 100644 index 0000000..5b270a7 --- /dev/null +++ b/.dotfiles/dotgit_config @@ -0,0 +1,2 @@ +[status] + showUntrackedFiles = no