Improve glog alias by creating a function for it

Improve glog alias by creating a function for it that uses fzf to
directly preview the full commit using git-show. The function also
allows to select one of the commits and putting its abbreviated commit
hash into the clipboard.
This commit is contained in:
2020-08-28 02:33:38 +02:00
parent c7c51a33fb
commit 91080dd6d6
2 changed files with 42 additions and 1 deletions

View File

@@ -70,7 +70,6 @@ alias gpll='git pull'
alias gpull='git pull'
alias gdiff='git diff'
alias gd='git diff'
alias glog="git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --graph --date=format:'%F %T' --color=always | less -Rn"
## Navigation
alias ls='_ls_show_hidden --color=auto --group-directories-first -p -v'