From 1c0865add6a293d2521aaa7424eb43efb2faad36 Mon Sep 17 00:00:00 2001 From: Mike Vink <59492084+ivi-vink@users.noreply.github.com> Date: Tue, 21 Jan 2025 17:51:12 +0100 Subject: symlinks --- justfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'justfile') 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 -- cgit v1.2.3