Configure paru with a config file

I noticed that paru is the default AUR handler. I applaud you for that. However, the alias in config.fish for it precludes using it to quickly do an upgrade. Paru allows the use of a config file (paru.conf) located in the usual places (/etc/paru.conf, ~/.config/paru/paru.conf) which will allow you set parameters without killing any functionality.

Here is a sample:

#
# $PARU_CONF
# /etc/paru.conf
# ~/.config/paru/paru.conf
#
# See the paru.conf(5) manpage for options

#
# GENERAL OPTIONS
#
[options]
PgpFetch
Devel
Provides
DevelSuffixes = -git -cvs -svn -bzr -darcs -always
BottomUp
SkipReview
#RemoveMake
#SudoLoop
#UseAsk
#CombinedUpgrade
#CleanAfter
#UpgradeMenu
#NewsOnUpgrade

#LocalRepo
#Chroot
#MovePkgs

#
# Binary OPTIONS
#
#[bin]
#FileManager = vifm
#MFlags = --skippgpcheck
#Sudo = doas

What exactly do you suggest to be changed and where?

2 Likes

Are the # ones enabled or disabled by default?

# denotes comment line.
They are disabled by default

1 Like

There is currently an alias in config.fish that maps paru to paru --BottomUp but that prevents just typing paru all by itself to perform an update (you are forced to type paru -Syuu as typing paru throws an error). By using paru.conf for parameters, the default functionality of paru is preserved and you get the behavior desired.

3 Likes

That is actually a good idea! Noted :slight_smile:
What do you think about enabling chroot by default?

2 Likes

I cannot comment as I have never tried that.

1 Like