fzf: Improve border label

This commit is contained in:
2025-09-11 01:47:32 +02:00
parent 254bfd4be2
commit 25b3a169a2
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ TARGET=$1
if [ -z "$TARGET" ]; then
if hash fzf 2>/dev/null; then
TARGET=$(git log -n 50 --pretty=format:'%h %s' --no-merges | fzf --border-label='Select commit' | cut -c -7 )
TARGET=$(git log -n 50 --pretty=format:'%h %s' --no-merges | fzf --border-label=' Select commit ' | cut -c -7 )
else
echo "Not installed: fzf"
exit -1

View File

@@ -119,7 +119,7 @@ if (( $+commands[fzf] )); then
if (( $+commands[paru] )); then
function pi {
paru -Slq | fzf -q "$1" --border-label="Packages" --multi --preview 'paru -Si {1} --color=always' | xargs -ro paru -S
paru -Slq | fzf -q "$1" --border-label=" Install package " --multi --preview 'paru -Si {1} --color=always' | xargs -ro paru -S
}
fi
fi