This commit is contained in:
2025-06-05 13:01:49 +00:00
parent dd52f1afe6
commit 719baaf847
14 changed files with 47 additions and 52 deletions

View File

@@ -48,7 +48,7 @@ mkdir -p "${USER_DIRS[@]}"
########## scripts #############
cp -rf bin/* ~/.local/bin
LN_EXCLUDE_DIRS=(i3blocks bemenu)
LN_EXCLUDE_DIRS=(i3blocks bemenu sway)
ln_exclude_dirs_cmp=" ${LN_EXCLUDE_DIRS[*]} "
for sdir in bin/*; do
@@ -59,7 +59,7 @@ for sdir in bin/*; do
-exec rm {} \;
#shellcheck disable=SC2016
find ~/.local/bin/"$sdir" -maxdepth 1 -type f -perm -u+rwx | \
xargs -0 -d \\n -n 1 sh -c 'ln -s "$1" "/$HOME/.local/bin/$(basename "$(dirname "$1")")-${1##*/}"' sh
xargs -0 -d \\n -n 1 sh -c 'ln -s "$1" "/$HOME/.local/bin/$(basename "$(dirname "$1")")-$(basename "$1" .sh)"' sh
done
################################