22 lines
556 B
Bash
22 lines
556 B
Bash
|
|
#!/bin/bash
|
||
|
|
# Install archypr scripts to local bin
|
||
|
|
# Adds symlinks to ~/archypr-config/scripts in ~/.local/bin
|
||
|
|
|
||
|
|
TARGET_DIR="/home/oval/.local/bin"
|
||
|
|
ARCHYPR_SCRIPTS="/home/oval/archypr-config/scripts"
|
||
|
|
|
||
|
|
mkdir -p "$TARGET_DIR"
|
||
|
|
|
||
|
|
echo "Installing archypr scripts to $TARGET_DIR..."
|
||
|
|
|
||
|
|
count=0
|
||
|
|
for script in "$ARCHYPR_SCRIPTS"/*; do
|
||
|
|
[[ -f "$script" ]] || continue
|
||
|
|
base_name=$(basename "$script")
|
||
|
|
ln -sf "$script" "$TARGET_DIR/$base_name"
|
||
|
|
((count++)) || true
|
||
|
|
done
|
||
|
|
|
||
|
|
echo "Installed $count scripts to $TARGET_DIR"
|
||
|
|
echo "Make sure ~/.local/bin is in your PATH"
|