mirror of
https://github.com/kazhala/dotbare
synced 2024-11-02 09:40:27 +00:00
fix preview diff
This commit is contained in:
parent
7649411bca
commit
64b7ae2fe4
@ -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}'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user