fzf: Improve border label
This commit is contained in:
@@ -4,7 +4,7 @@ TARGET=$1
|
|||||||
|
|
||||||
if [ -z "$TARGET" ]; then
|
if [ -z "$TARGET" ]; then
|
||||||
if hash fzf 2>/dev/null; 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
|
else
|
||||||
echo "Not installed: fzf"
|
echo "Not installed: fzf"
|
||||||
exit -1
|
exit -1
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ if (( $+commands[fzf] )); then
|
|||||||
|
|
||||||
if (( $+commands[paru] )); then
|
if (( $+commands[paru] )); then
|
||||||
function pi {
|
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
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user