mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-18 21:27:42 +00:00
Moved to paru
This commit is contained in:
parent
2a0e5325c0
commit
ee7ae5bcb0
@ -32,18 +32,18 @@ _fzf_compgen_path() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# search and install packages with fzf
|
# search and install packages with fzf
|
||||||
yi() {
|
pi() {
|
||||||
SELECTED_PKGS="$(yay -Slq | fzf --header='Install packages' -m --preview 'yay -Si {1}')"
|
SELECTED_PKGS="$(paru -Slq | fzf --header='Install packages' -m --preview 'paru -Si {1}')"
|
||||||
if [ -n "$SELECTED_PKGS" ]; then
|
if [ -n "$SELECTED_PKGS" ]; then
|
||||||
yay -S $(echo $SELECTED_PKGS)
|
paru -S $(echo $SELECTED_PKGS)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# search and remove packages with fzf
|
# search and remove packages with fzf
|
||||||
yr() {
|
pr() {
|
||||||
SELECTED_PKGS="$(yay -Qsq | fzf --header='Remove packages' -m --preview 'yay -Si {1}')"
|
SELECTED_PKGS="$(paru -Qsq | fzf --header='Remove packages' -m --preview 'paru -Si {1}')"
|
||||||
if [ -n "$SELECTED_PKGS" ]; then
|
if [ -n "$SELECTED_PKGS" ]; then
|
||||||
yay -Rns $(echo $SELECTED_PKGS)
|
paru -Rns $(echo $SELECTED_PKGS)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ clean() {
|
|||||||
SPACEBEFORE=$(eval "$DFCMD")
|
SPACEBEFORE=$(eval "$DFCMD")
|
||||||
trash-empty 10
|
trash-empty 10
|
||||||
sudo journalctl --vacuum-size=500M
|
sudo journalctl --vacuum-size=500M
|
||||||
yay -Sc
|
paru -Sc
|
||||||
SPACEAFTER=$(eval "$DFCMD")
|
SPACEAFTER=$(eval "$DFCMD")
|
||||||
echo "Saved $(calc $SPACEAFTER - $SPACEBEFORE)G of space"
|
echo "Saved $(calc $SPACEAFTER - $SPACEBEFORE)G of space"
|
||||||
}
|
}
|
||||||
@ -144,8 +144,8 @@ update() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
base() {
|
base() {
|
||||||
yay -Pw
|
paru -Pw
|
||||||
yay -Syu $@
|
paru -Syu $@
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins() {
|
plugins() {
|
||||||
|
Loading…
Reference in New Issue
Block a user