Add 'pac' and 'aur' scripts for find packages

This commit is contained in:
Wiktor Zykubek 2020-05-10 19:40:39 +02:00
parent a229ec204c
commit 0f0e8e4f1e
3 changed files with 9 additions and 1 deletions

3
.local/bin/scripts/aur Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
yay -Slq | fzf -m --preview 'yay -Si {1}' | yay -S -

6
.local/bin/scripts/pac Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
package="$(pacman -Slq | fzf -m --preview 'pacman -Si {1}')"
[ ! "$package" ] && exit
sudo pacman -S "$package"

View File

@ -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'