paru icon indicating copy to clipboard operation
paru copied to clipboard

Allow `~` expansion for config files and folders

Open nachtjasmin opened this issue 1 year ago • 2 comments

(Almost the same as #344, just for a different setting.)

Hi, I want to share my Pacman config across my systems to have the same local repository and settings everywhere. Therefore I've put the custom pacman.conf along with the paru configuration into my dotfiles and referenced the pacman config like this:

PacmanConf = "~/.config/pacman/custom.conf"

Unfortunately, this doesn't work. Replacing the tilde with $HOME doesn't work either. I want to keep it portable without cluttering the /var/ or /opt folders. Therefore an expansion of ~ or $HOME to the current home directory would be a nice addition.

nachtjasmin avatar Oct 11 '23 10:10 nachtjasmin

This would also be useful for specifying local PKGBUILD repositories via

Path = ~/path/to/directory

jdujava avatar Nov 30 '23 22:11 jdujava

I'm for this, just once I think up a clean way to implement it.

Morganamilo avatar Dec 01 '23 19:12 Morganamilo