skyg utils
This commit is contained in:
1 parent
320d63216e
commit
5dff13db1e
6 files changed
+227
-4
No files matched your search
@@ -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
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user