Skip to content

Commit

Permalink
interactive_purge - add description of each package in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
victory-sokolov committed Jan 1, 2024
1 parent e6846c3 commit 813e3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/.linux-functions
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function interactive_purge() {
cli_programs=$(show-installed)

# Use fzf for interactive program selection
selected_programs=$(echo "$cli_programs" | fzf --multi --prompt="Select CLI programs for removal:")
selected_programs=$(echo "$cli_programs" | fzf --multi --with-nth 1 --preview="apt show {} 2>/dev/null | grep -E 'Package|Description|Installed-Size|Depends|Recommends'")

# Check if any programs are selected
if [ -n "$selected_programs" ]; then
Expand Down

0 comments on commit 813e3f1

Please sign in to comment.