diff --git a/scripts/README.md b/scripts/README.md index c65302c..52cee03 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -36,6 +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 - `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 9c1aeb0..d1e11de 100644 --- a/scripts/mkr.sh +++ b/scripts/mkr.sh @@ -20,8 +20,7 @@ alias clip="xclip -selection clipboard" alias update="sudo apt-get update" alias i="sudo apt-get install -y" alias purge="sudo apt purge -y" -alias ar="sudo apt autoremove -y" -alias autoremove="sudo apt autoremove -y" # Alias of ar +alias autoremove="sudo apt autoremove -y" ## To install without -y @@ -54,7 +53,11 @@ rmd () { # Git commands -## low-level `dot-git-cmd`, to be used for `dotgit` command +## 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)"' + +## lower-level `dot-git-cmd`, to be used for `dotgit` command alias dot-git-cmd="git --git-dir=$HOME/.dotfiles --work-tree=$HOME" # Manage dotfiles repo