summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-21 17:51:12 +0100
committerMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-21 17:51:12 +0100
commit1c0865add6a293d2521aaa7424eb43efb2faad36 (patch)
treea4799771a69be1866af591fcf90098d21157ceaf /justfile
parentdc74b18ee87287a419a56d673b93547697a783ba (diff)
symlinks
Diffstat (limited to 'justfile')
-rw-r--r--justfile16
1 files changed, 10 insertions, 6 deletions
diff --git a/justfile b/justfile
index 1c3dcdc..7f4ba4b 100644
--- a/justfile
+++ b/justfile
@@ -65,9 +65,13 @@ NIXNAME := "vm-aarch64"
"
@symlinks:
- ln -sf /nix-config/mut/DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict
- ln -sf /nix-config/mut/aerospace ~/.config/aerospace
- ln -sf /nix-config/mut/ghostty ~/.config/ghostty
- ln -sf /nix-config/mut/nushell ~/.config/nushell
- ln -sf /nix-config/mut/neovim ~/.config/nvim
- ln -sf /nix-config/mut/k9s ~/.config/k9s
+ #!/usr/bin/env bash
+ set -x
+ ln -sf /nix-config/mut/DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict
+ ! [ -d ~/.config/aerospace ] && ln -sf /nix-config/mut/aerospace ~/.config/aerospace
+ ! [ -d ~/.config/ghostty ] && ln -sf /nix-config/mut/ghostty ~/.config/ghostty
+ ! [ -d ~/.config/nushell ] && ln -sf /nix-config/mut/nushell ~/.config/nushell
+ ! [ -d ~/.config/nvim ] && ln -sf /nix-config/mut/neovim ~/.config/nvim
+ ! [ -d ~/.config/k9s ] && ln -sf /nix-config/mut/k9s ~/.config/k9s
+ ! [ -d ~/.config/carapace ] && ln -sf /nix-config/mut/carapace ~/.config/carapace
+ true