From 776a74b85a6e855793bd5a56c66f134a4aa788eb Mon Sep 17 00:00:00 2001 From: Bas van den Wollenberg Date: Tue, 9 Dec 2025 19:08:13 +0100 Subject: [PATCH] only use pacman config if it exists --- fish/.config/fish/functions/pacman.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fish/.config/fish/functions/pacman.fish b/fish/.config/fish/functions/pacman.fish index de80cb7..968229b 100644 --- a/fish/.config/fish/functions/pacman.fish +++ b/fish/.config/fish/functions/pacman.fish @@ -1,3 +1,7 @@ function pacman - command pacman --config /home/bas/.config/pacman/pacman.conf $argv + if test -f /home/bas/.config/pacman/pacman.conf + command pacman --config /home/bas/.config/pacman/pacman.conf $argv + else + command pacman $argv + end end -- 2.51.2