Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a different way (Not an Issue) #10

Open
HeCodes2Much opened this issue Oct 25, 2022 · 0 comments
Open

Just a different way (Not an Issue) #10

HeCodes2Much opened this issue Oct 25, 2022 · 0 comments

Comments

@HeCodes2Much
Copy link

just a different example of how i do this

  cmd=$(pacman -Slq | fzf --prompt 'pacman> ' \
    --header 'Install packages. CTRL+[P/Y/R/I/Q] (Pacman/Yay/Paru/Installed/Quit)' \
    --bind 'ctrl-p:change-prompt(pacman> )+reload(pacman -Slq)' \
    --bind 'ctrl-y:change-prompt(yay> )+reload(yay -Slq)' \
    --bind 'ctrl-r:change-prompt(paru> )+reload(paru -Slq)' \
    --bind 'ctrl-i:change-prompt(inst> )+reload(yay -Qq)' \
    --multi --height=80% --preview 'sleep 2; yay -Si {1}' \
    --preview-window right) #| xargs -ro pacman -S
  cmd=${cmd//$'\n'/ }       # newline -> space
  if [ -n "$cmd" ]; then
    yay -S "$cmd"
  fi
  exit

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant