2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-02 09:40:27 +00:00

fix preview diff

This commit is contained in:
kevin zhuang 2020-04-17 18:00:18 +10:00
parent 7649411bca
commit 64b7ae2fe4

View File

@ -109,7 +109,7 @@ function get_modified_file() {
| fzf --header="${header}" --preview "echo {} \
| awk '{print \$2}' \
| xargs -I __ /usr/bin/git --git-dir=${DOTBARE_DIR} --work-tree=${DOTBARE_TREE} \
diff --color=always ${DOTBARE_TREE}/__" \
diff HEAD --color=always ${DOTBARE_TREE}/__" \
| awk -v home="${DOTBARE_TREE}" '{print home "/" $2}'
}