From da274ae592f21096ac424e7aabe698b04813da75 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sun, 7 Sep 2025 18:03:33 +0200 Subject: Add files to ln.sh --- ln.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ln.sh b/ln.sh index 1c27db1..55040c9 100755 --- a/ln.sh +++ b/ln.sh @@ -1,5 +1,20 @@ -#!/bin/bash +#!/usr/bin/env bash -for dir in bat fzf ripgrep fish nvim; do - ln -s ~/dots/"$dir" ~/.config/ +SCRIPT_DIR=$(dirname "$(readlink -f "$0")") +pushd $SCRIPT_DIR + +mkdir -p ~/.config +pushd ~/.config +for dir in bat fish fzf kitty nvim ripgrep; do + ln -s "${SCRIPT_DIR}/${dir}" . +done +popd + +pushd ~ +for f in $(find $SCRIPT_DIR -type f -name 'dot.*'); do + file="$(basename $f)" + ln -s "${SCRIPT_DIR}/${file}" "${file/dot/}" done +popd + +popd -- cgit v1.2.3