Code Monkey home page Code Monkey logo

paruz's Introduction

A fzf terminal UI for paru (or pacman, if paru is not installed).

VERSION: 1.1.2

Usage

Usage: paruz [OPTS]

A fzf terminal UI for paru or pacman.

sudo is invoked automatically, if needed.

Multiple packages can be selected.

The package manager can be changed with the environment variables: PARUZ

Keybindings:
  TAB                    Select
  Shift+TAB              Deselect

OPTS:
  -h, --help             Print this message

  All other options are passed to the package manager.
  Default: -S (install)

Examples:
  paruz -S --nocleanafter
  paruz -R
  PARUZ=yay paruz

Requirements

  • fzf
  • bash > 4.3 (released 2009)

Installation

Arch Linux

paru -S paruz

Direct Download

wget -O ~/.bin/paruz https://raw.githubusercontent.com/joehillen/paruz/master/paruz
chmod +x ~/.bin/paruz

From Source

git clone https://github.com/joehillen/paruz.git
cd paruz
sudo make install # /usr/local/bin/paruz

paruz's People

Contributors

joehillen avatar rashil2000 avatar triarius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

paruz's Issues

Enable text wrap

If the terminal window is small horizontally, then the description of a package is cut off. This would be fixed by enabling word wrap. This can be fixed by adding --preview-window ":wrap" to the fzf arguments, this info is in the man page for fzf.

Remove aur package is broken

Removing aur packages is not working.

Example:

# try to remove with paruz
paruz -R
error: target not found: aur/sublime-text-4

# ok to remove with paru
paru -Rnc sublime-text-4 

how about caching pkg list?

My previous solution was save pkg list regularly w/ systemd timer then search and install with fzf + yay.

But paruz is more better than my ad-hoc script. So I'm thinking about stick with paruz.

How about caching pkg list? Like only refresh every one hour.

Thanks for paruz and sysz. I'm very enjoying sysz also.

Option to group results by repo

I don't really know if this is possible, but it would be nice to group the results. Sometimes the result at the bottom is in the AUR when a perfectly good community package exists.

Links are not clickable

The links in the info panel do not work when clicked for me in kitty. Sometimes I like to view the comments in an AUR package before install, and would like to be able to click the URL.

Doesn't work with pacman

I tried running paruz with just pacman and no other AUR helper and it fails to run. On exiting, the error is sudo pacman: no such command found. I'm running:

  • bash: 5.1.18
  • fzf: 0.27.2

image

Just a different way (Not an Issue)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.