diff options
| author | alex <alex@pdp7.net> | 2024-05-16 11:32:45 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2024-05-16 11:32:45 +0200 |
| commit | c9a7eb098ae8892f9e2324084fd210bcb6682c35 (patch) | |
| tree | d6c246313c1b113c3e0d0157bbb65a6126033318 /scripts | |
| parent | 80666b2ee1306dafa3b837e2b75528cec42d60e6 (diff) | |
Make idempotent
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/p7s/emacs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/p7s/emacs.py b/scripts/p7s/emacs.py index 633aab54..c27001f2 100644 --- a/scripts/p7s/emacs.py +++ b/scripts/p7s/emacs.py @@ -5,5 +5,7 @@ import p7s def setup_emacs(): p7s.BASHRC_D.mkdir(parents=True, exist_ok=True) + (p7s.BASHRC_D / "emacs.bash").unlink() subprocess.run(["ln", "-s", (pathlib.Path(__file__).parent.parent.parent / "emacs" / "emacs.bash").absolute(), p7s.BASHRC_D / "emacs.bash"], check=True) + (pathlib.Path.home() / ".emacs").unlink() subprocess.run(["ln", "-s", (pathlib.Path(__file__).parent.parent.parent / "emacs" / "emacs.el").absolute(), pathlib.Path.home() / ".emacs"], check=True) |
