fix the pop preview
This commit is contained in:
parent
39403225d0
commit
5cddd9fd55
1 changed files with 3 additions and 1 deletions
|
@ -156,7 +156,9 @@ stash() {
|
|||
|
||||
pop() {
|
||||
local selection
|
||||
selection=$(git stash list | fzf --prompt="Select stash to pop: " --preview="git stash show -p $(echo {} | awk -F: '{print $1}') | bat --color always --paging=never -l diff")
|
||||
selection=$(git stash list | \
|
||||
fzf --prompt="Select stash to pop: " \
|
||||
--preview="git stash show -p \$(echo {} | awk -F: '{print \$1}') | bat --color always --paging=never --style=plain -l diff")
|
||||
[ -z "$selection" ] && echo "No stash selected." && return 1
|
||||
local stash_ref
|
||||
stash_ref=$(echo "$selection" | awk -F: '{print $1}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue