diff --git a/scripts/README.md b/scripts/README.md index 52cee03..6be7fc6 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -36,7 +36,7 @@ mkr-update - `mkd ` : Creates dir at given path and changes cwd to it - `rmd [dir]` : Removes current directory and moves up OR removes directory by given name - git - - `git-graph` : Opens a pretty commit log graph + - `git graph` : Opens a pretty commit log graph - `commit ` : Adds all untracked files and commits them - `push [remote branch]` : Adds all untracked files, commits and pushes them - `dotgit [commands...]` : Requires a `~/.dotfiles` bare repo to exist diff --git a/scripts/mkr.sh b/scripts/mkr.sh index d1e11de..48499cd 100644 --- a/scripts/mkr.sh +++ b/scripts/mkr.sh @@ -55,7 +55,7 @@ rmd () { ## git graph ## Usage: git graph -alias git-graph='git log --graph --date-order --pretty=format:"%C(bold yellow)%h%C(auto)%d %C(cyan)%an%C(bold white) %s %C(auto)%C(green)(%ar)%C(reset)"' +git config --global alias.graph 'log --graph --date-order --pretty=format:"%C(bold yellow)%h%C(auto)%d %C(cyan)%an%C(bold white) %s %C(auto)%C(green)(%ar)%C(reset)"' ## lower-level `dot-git-cmd`, to be used for `dotgit` command alias dot-git-cmd="git --git-dir=$HOME/.dotfiles --work-tree=$HOME"