Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum

Fuzzy cli install function/script

Started by manyroads, June 12, 2022, 10:59:07 PM

Previous topic - Next topic


For those looking for a nice cli "fuzzy" install function:

FWIW I modified it to use both nala as well as fzf.

#! /bin/bash
# this script utilizes nala & fzf (which need to installed)
# you may modify this to use apt instead of nala
# simply change "nala" to "apt"
# script built by ManyRoads

apt-cache pkgnames | fzf --multi --cycle --reverse --preview "apt-cache show {1}" --preview-window=:57%:wrap:hidden --bind=space:toggle-preview | xargs -ro sudo nala install
openbox, dwm & i3wm ~Reg. Linux User #449130

View the most recent posts on the forum