scripts
This commit is contained in:
@@ -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
|
||||
################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user