skyg utils

This commit is contained in:
ari committed 2025-07-28 09:57:20 -04:00
1 parent 320d63216e
commit 5dff13db1e
6 files changed
+227 -4

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
{
makeHyperlinkScriptToConfigs =
{ filePath
, configSource
}:
let
homePath = "$HOME/.config/${filePath}";
sourcePath = "${configSource}/${filePath}";
in
''
rm -f "${homePath}"
if [[ ! -h "$HOME/.config/${filePath}" ]]; then
ln -s "${sourcePath}" "${homePath}"
fi
'';
}