tmux popup fixery

This commit is contained in:
Daniel Lundin 2022-08-30 14:47:41 +02:00
parent e67758a53d
commit 949fe999e3
3 changed files with 6 additions and 6 deletions

View file

@ -4,9 +4,10 @@ set -fe -o pipefail
if [ -n "$1" ]; then
_file=$(readlink -f "$@")
else
FZF=${FZF:-"fzf-tmux -p 90%,50% -y 0"}
_git_root=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
_store=$(echo "$_git_root" | sha1sum | cut -d ' ' -f 1)
_file=$( (fre --store_name "$_store" --sorted && fd --type f --hidden --follow --exclude .git . "$_git_root") | fzf)
_file=$( (fre --store_name "$_store" --sorted && fd --type f --hidden --follow --exclude .git . "$_git_root") | $FZF)
fre --store_name "$_store" --add "$_file"
fi