From a50b1c089a6d81552d94cf982429ca7b9ef1a919 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Fri, 9 Feb 2024 10:17:21 -0300 Subject: [PATCH] home-environments: radio: Update functionality of xdg-user-directory abbreviation --- files/fish/functions/fish_custom_functions.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/fish/functions/fish_custom_functions.fish b/files/fish/functions/fish_custom_functions.fish index 98a3551..9724080 100644 --- a/files/fish/functions/fish_custom_functions.fish +++ b/files/fish/functions/fish_custom_functions.fish @@ -1,6 +1,7 @@ function xdg-user-directory - string replace '@' '' \ - (string join '' '$XDG_' (string upper $argv[1]) '_DIR') + eval (string join '' 'echo $XDG_' \ + (string replace '@' '' (string upper $argv[1])) \ + '_DIR') end function bang-bang