From 0f0e8e4f1e4d11ba4eaf97ba6d70e43de830ce90 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Sun, 10 May 2020 19:40:39 +0200 Subject: [PATCH] Add 'pac' and 'aur' scripts for find packages --- .local/bin/scripts/aur | 3 +++ .local/bin/scripts/pac | 6 ++++++ .shellrc | 1 - 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 .local/bin/scripts/aur create mode 100755 .local/bin/scripts/pac diff --git a/.local/bin/scripts/aur b/.local/bin/scripts/aur new file mode 100755 index 0000000..ebeef7b --- /dev/null +++ b/.local/bin/scripts/aur @@ -0,0 +1,3 @@ +#!/bin/sh + +yay -Slq | fzf -m --preview 'yay -Si {1}' | yay -S - diff --git a/.local/bin/scripts/pac b/.local/bin/scripts/pac new file mode 100755 index 0000000..0fd23f9 --- /dev/null +++ b/.local/bin/scripts/pac @@ -0,0 +1,6 @@ +#!/bin/sh + +package="$(pacman -Slq | fzf -m --preview 'pacman -Si {1}')" +[ ! "$package" ] && exit + +sudo pacman -S "$package" diff --git a/.shellrc b/.shellrc index 4775e8a..cff7359 100644 --- a/.shellrc +++ b/.shellrc @@ -36,7 +36,6 @@ alias tr='tree -L 2' alias owo='pacman' alias sowo='sudo pacman' alias yay='yay --editmenu --nodiffmenu --save' -alias uwu="yay -Slq | fzf -m --preview 'yay -Si {1}' | yay -S -" # youtube-dl alias ytdl-audio='youtube-dl -i -f bestaudio -o "%(title)s.%(ext)s" -4'