Make copy command configurable.(#12)

This commit is contained in:
Wenxuan 2018-11-09 11:34:04 +08:00
parent b52a7c7d0f
commit 5deb20fef9

View file

@ -59,7 +59,7 @@ forgit::log() {
eval "git log --graph --color=always --format='%C(auto)%h%d %s %C(black)%C(bold)%cr' $@ $forgit_emojify" |
forgit::fzf +s +m --tiebreak=index \
--bind="enter:execute($cmd |LESS='-R' less)" \
--bind="ctrl-y:execute-silent(echo {} |grep -o '[a-f0-9]\{7\}' |pbcopy)" \
--bind="ctrl-y:execute-silent(echo {} |grep -o '[a-f0-9]\{7\}' |${FORGIT_COPY_CMD:-pbcopy})" \
--preview="$cmd"
}