diff options
Diffstat (limited to 'workstation')
| -rwxr-xr-x | workstation/setup.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/workstation/setup.py b/workstation/setup.py index f1fbea96..b2684ae1 100755 --- a/workstation/setup.py +++ b/workstation/setup.py @@ -42,3 +42,13 @@ subprocess.run(["systemctl", "--user", "enable", "--now", "nextcloud"], check=Tr if not (pathlib.Path.home() / ".ssh").exists(): subprocess.run(["ln", "-s", "Nextcloud/_ssh", ".ssh"], check=True) + + +dotfiles_dir = pathlib.Path.home() / "Nextcloud" / "dotfiles" + +for dotfile in dotfiles_dir.glob("*"): + relative_dotfile = dotfile.relative_to(dotfiles_dir) + replaced_dotfile = pathlib.Path.home() / ("." + relative_dotfile.parts[0][1:]) + if not replaced_dotfile.exists(): + subprocess.run(["ln", "-s", dotfile, replaced_dotfile], check=True) + |
