dotfiles

Author: Kyle Fuller <kyle@fuller.li> 2019-01-03 03:42:34 +0000 +0000
Committer: Kyle Fuller <kyle@fuller.li> 2019-01-03 04:15:30 +0000 +0000
Commit: f3c5bcf5dc3dc316274fa0363ca252c23b8837c6
Parent: ab25d1f7578ee8e85a6930216ba6c4328c736fe6


feat: Add `h` alias to run command for dotfiles
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index 2534b1f09a265b6fe604fe072381a31b7616567d..ef170bac186dff1e2a1cebec5823220e3a98e974 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -9,7 +9,7 @@
 set -x PIP_REQUIRE_VIRTUALENV "true"
 set -x PYTHONSTARTUP $HOME/.pystartup
 
-alias home="git --work-tree=$HOME --git-dir=$HOME/.files.git"
+alias h="env GIT_WORK_TREE=$HOME GIT_DIR=$HOME/.files.git"
 
 # swiftenv
 if test -d "$HOME/.swiftenv"
diff --git a/README.md b/README.md
index f34ee87d68276841ffd946ba9963ec99ecc5d507..f5bcebd079eaccbf8795feb8bf6c45e580daa558 100644
--- a/README.md
+++ b/README.md
@@ -7,11 +7,11 @@
 Cloning the dotfiles:
 
 ```shell
-$ alias home="git --work-tree=$HOME --git-dir=$HOME/.files.git"
-$ home init
-$ home remote add origin https://github.com/kylef/dotfiles.git
-$ home fetch
-$ home checkout master
+$ alias h="env GIT_WORK_TREE=$HOME GIT_DIR=$HOME/.files.git"
+$ h git init
+$ h git remote add origin https://github.com/kylef/dotfiles.git
+$ h git fetch
+$ h git checkout master
 ```
 
 Installing tools: