diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-09-07 18:03:33 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-09-07 18:03:33 +0200 |
| commit | da274ae592f21096ac424e7aabe698b04813da75 (patch) | |
| tree | cf53b212ad522ab280928c48dd7d811b99edc3f5 /ln.sh | |
| parent | af742566f6b950a2d1e861d1ed0c659148cc5ce4 (diff) | |
| download | dots-da274ae592f21096ac424e7aabe698b04813da75.tar.gz | |
Add files to ln.sh
Diffstat (limited to 'ln.sh')
| -rwxr-xr-x | ln.sh | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -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 |