dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 53327e2a3f3d8b4d5190818872601e22cadc551c
parent f80881b15c50e095a48c0439d27fb45ae964a2ee
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  4 Apr 2018 20:50:01 -0400

Use fzf for git log

Diffstat:
Mlinks/.zshrc | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -281,6 +281,13 @@ if _has fzf; then sed -e 's/\(.*\)\.gpg/\1/' ) } + # redefine git log alias + alias gl="git log --graph --oneline --decorate --all --color=always | + fzf --ansi +s --preview='git show --color=always {2}' \ + --bind='pgdn:preview-page-down' \ + --bind='pgup:preview-page-up' \ + --bind='enter:execute:git show --color=always {2} | less -R' \ + --bind='ctrl-x:execute:git checkout {2} .'" fi