Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Fuzzy cli install function/script

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

Previous topic - Next topic

manyroads

For those looking for a nice cli "fuzzy" install function:  https://forum.mxlinux.org/viewtopic.php?p=686448#p686448

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 https://eirenicon.org

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