summaryrefslogtreecommitdiff
path: root/.config/aliasrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/aliasrc')
-rw-r--r--.config/aliasrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/aliasrc b/.config/aliasrc
new file mode 100644
index 0000000..ff96ea0
--- /dev/null
+++ b/.config/aliasrc
@@ -0,0 +1,4 @@
+# The $HOME directory is the working directory for the bare dotfiles git repo.
+# As such we can't use the git command in this directory if we want to work with the repo.
+# Instead the dotfiles alias is used.
+alias dotfiles='/usr/bin/git --git-dir=$HOME/.local/src/ --work-tree=$HOME'