Skip to content

Commit

Permalink
Merge pull request #46 from nbrown/brew-info
Browse files Browse the repository at this point in the history
Add "brew info" as fzf preview option where missing for homebrew fzf commands
  • Loading branch information
unixorn authored Nov 11, 2021
2 parents 833c2f9 + dea9321 commit 5758b65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/fzf-brew-install
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi
# using "brew search" as source input
function fzf-brew-install(){
# shellcheck disable=SC2068
inst=$(brew search $@ | fzf -m)
inst=$(brew search $@ | fzf -m --preview 'brew info {}')

if [[ $inst ]]; then
for prog in $inst
Expand Down
2 changes: 1 addition & 1 deletion bin/fzf-brew-uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

# Delete (one or multiple) selected application(s)
fzf-brew-uninstall() {
uninst=$(brew leaves | fzf -m)
uninst=$(brew leaves | fzf -m --preview 'brew info {}')

if [[ $uninst ]]; then
for prog in $uninst
Expand Down
2 changes: 1 addition & 1 deletion bin/fzf-brew-update
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

# Update (one or multiple) selected application(s)
brew-update-plugin() {
upd=$(brew leaves | fzf -m)
upd=$(brew leaves | fzf -m --preview 'brew info {}')

if [[ $upd ]]; then
# shellcheck disable=SC2086
Expand Down

0 comments on commit 5758b65

Please sign in to comment.