From d3c29865b46384412294304aae107a3b16bb2b00 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Fri, 3 Jan 2025 16:00:03 +0100 Subject: [PATCH] Add a bunch of alias to use git w/o delta-diff-viewer --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index f7ba4a1..fa8ebf7 100644 --- a/.bashrc +++ b/.bashrc @@ -71,8 +71,11 @@ alias commit='git commit' alias gc='git commit' alias st='git status' alias gd='git diff' +alias gdl='GIT_PAGER=less git diff' alias gt='git gt' +alias gtl='GIT_PAGER=less git gt' alias gdc='gd --cached' +alias gdcl='GIT_PAGER=less gd --cached' alias c='git commit' alias markdown_pdf="docker run --rm -v \$PWD:/opt/docs auchida/markdown-pdf markdown-pdf" alias vimwiki='vim -c VimwikiIndex -c "cd %:p:h" -c "silent Git pull"' @@ -83,6 +86,7 @@ export LESSOPEN='|~/.local/bin/lessfilter %s' # Enable autocompletion for "config" to manage dotfiles __git_complete config __git_main +__git_complete c __git_main [ -s "$XDG_CONFIG_HOME/bash/local-config" ] && . "$XDG_CONFIG_HOME/bash/local-config"