home-environments: radio: Update functionality of xdg-user-directory abbreviation

sioyek
Luis Guilherme Coelho 2024-02-09 10:17:21 -03:00
parent 55ca502560
commit a50b1c089a
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 3 additions and 2 deletions

View File

@ -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