diff --git a/completions/bash b/completions/bash index e8fb09ee..b8362d9c 100644 --- a/completions/bash +++ b/completions/bash @@ -70,7 +70,7 @@ _paru() { noconfirm noprogressbar noscriptlet quiet root verbose repo aur aururl clonedir makepkg mflags pacman git gitflags sudo sudoflags - asp gpg gpgflags fm fmflags completioninterval sortby searchby limit upgrademenu + asp gpg gpgflags fm fmflags pager completioninterval sortby searchby limit upgrademenu removemake noremovemake cleanafter nocleanafter rebuild rebuildall norebuild rebuildtree redownload noredownload redownloadall pgpfetch nopgpfetch useask nouseask savechanges nosavechanges combinedupgrade nocombinedupgrade diff --git a/completions/fish b/completions/fish index fc5dceb5..0b0b13d7 100644 --- a/completions/fish +++ b/completions/fish @@ -193,6 +193,7 @@ complete -c $progname -n "not $noopt" -l git -d 'Git command to use' -f complete -c $progname -n "not $noopt" -l asp -d 'Asp command to use' -f complete -c $progname -n "not $noopt" -l gpg -d 'Gpg command to use' -f complete -c $progname -n "not $noopt" -l fm -d 'File manager to use' -f +complete -c $progname -n "not $noopt" -l pager -d 'Pager command to use' -f complete -c $progname -n "not $noopt" -l completioninterval -d 'Refresh interval for completion cache' -f complete -c $progname -n "not $noopt" -l sortby -d 'Sort AUR results by a specific field during search' -xa "{votes,popularity,id,baseid,name,base,submitted,modified}" complete -c $progname -n "not $noopt" -l searchby -d 'Search for AUR packages by querying the specified field' -xa "{name,name-desc,maintainer,depends,checkdepends,makedepends,optdepends}" diff --git a/completions/zsh b/completions/zsh index 0c687f10..b7ebe234 100644 --- a/completions/zsh +++ b/completions/zsh @@ -57,6 +57,7 @@ _pacman_opts_common=( '--gpg[gpg command to use]:gpg:_files' '--fm[file manager to use]:fm:_files' '--asp[asp command to use]:asp:_files' + '--pager[pager command to use]:pager:_files' '--sortby[Sort AUR results by a specific field during search]:sortby options:(votes popularity id baseid name base submitted modified)' '--upgrademenu[Show a detailed list of updates with the option to skip any]' diff --git a/man/paru.8 b/man/paru.8 index f9e91355..6e517411 100644 --- a/man/paru.8 +++ b/man/paru.8 @@ -250,6 +250,11 @@ Directory used to download and run PKGBUILDs. The command to use for \fBmakepkg\fR calls. This can be a command in \fBPATH\fR or an absolute path to the file. +.TP +.B \-\-makepkgconf +Specifies a \fBmakepkg.conf\fR file to use in the chroot enviorment. The file +can only be an absolute path to the file. + .TP .B \-\-pacman The command to use for \fBpacman\fR calls. This can be a command in diff --git a/man/paru.conf.5 b/man/paru.conf.5 index ad70b049..30a3d980 100644 --- a/man/paru.conf.5 +++ b/man/paru.conf.5 @@ -181,6 +181,10 @@ to never be refreshed. Defaults to 7. .B PacmanConf = path/to/pacman.conf The pacman config file to use. +.TP +.B MakepkgConf = path/to/makepkg.conf +The makepkg config file to use. + .TP .B DevelSuffixes = Suffixes... Suffixes that paru will use to decide if a package is a devel package. diff --git a/src/command_line.rs b/src/command_line.rs index d0a95ca1..def96bc8 100644 --- a/src/command_line.rs +++ b/src/command_line.rs @@ -178,6 +178,7 @@ impl Config { Arg::Long("asp") => self.asp_bin = value?.to_string(), Arg::Long("bat") => self.bat_bin = value?.to_string(), Arg::Long("fm") => self.fm = Some(value?.to_string()), + Arg::Long("pager") => self.pager_cmd = Some(value?.to_string()), Arg::Long("config") => self.pacman_conf = Some(value?.to_string()), Arg::Long("builddir") | Arg::Long("clonedir") => self.build_dir = value?.into(), diff --git a/src/config.rs b/src/config.rs index 6535a4e9..ecf6ba73 100644 --- a/src/config.rs +++ b/src/config.rs @@ -899,6 +899,7 @@ impl Config { "Limit" => self.limit = value?.parse()?, "CompletionInterval" => self.completion_interval = value?.parse()?, "PacmanConf" => self.pacman_conf = Some(value?), + "MakepkgConf" => self.makepkg_conf = Some(value?), "DevelSuffixes" => { self.devel_suffixes .extend(value?.split_whitespace().map(|s| s.to_string()));