mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-16 21:27:44 +00:00
Enable pacman fzf functions only on arch
This commit is contained in:
parent
dc8475f7bb
commit
c422a3aff3
@ -23,6 +23,7 @@ function command_not_found_handler {
|
|||||||
}
|
}
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
|
||||||
|
{%@@ if os == "arch" @@%}
|
||||||
# search and install/remove packages with fzf
|
# search and install/remove packages with fzf
|
||||||
pi() {
|
pi() {
|
||||||
SELECTED_PKGS="$(paru -Slq | fzf --header='Install packages' -m --preview 'paru -Si {1}')"
|
SELECTED_PKGS="$(paru -Slq | fzf --header='Install packages' -m --preview 'paru -Si {1}')"
|
||||||
@ -40,6 +41,7 @@ pr() {
|
|||||||
paru -Rns $(echo $SELECTED_PKGS)
|
paru -Rns $(echo $SELECTED_PKGS)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
{%@@ endif @@%}
|
||||||
|
|
||||||
# find and open man pages with fzf
|
# find and open man pages with fzf
|
||||||
fman() {
|
fman() {
|
||||||
|
Loading…
Reference in New Issue
Block a user