Initial Claude launcher profiles

This commit is contained in:
Dieter Schlüter 2026-06-28 01:50:13 +02:00
commit 7fd845235c
7 changed files with 258 additions and 0 deletions

15
bin/claude-profile Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=/dev/null
source "$SCRIPT_DIR/../lib/profiles.sh"
PROFILE="${1:-}"
if [[ -z "$PROFILE" ]]; then
echo "Usage: claude-profile <profile>"
exit 1
fi
launch_profile "$PROFILE"

24
bin/install-claude-profiles Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
TARGET_DIR="$HOME/src"
TARGET_REPO="$TARGET_DIR/claude-launcher-profiles"
BASHRC="$HOME/.bashrc"
ALIAS_LINE="source $TARGET_REPO/shell/aliases.sh"
mkdir -p "$TARGET_DIR"
if [[ "$REPO_DIR" != "$TARGET_REPO" ]]; then
if [[ ! -e "$TARGET_REPO" ]]; then
ln -s "$REPO_DIR" "$TARGET_REPO"
fi
fi
if ! grep -Fq "$ALIAS_LINE" "$BASHRC" 2>/dev/null; then
printf '\n# claude-launcher-profiles\n%s\n' "$ALIAS_LINE" >> "$BASHRC"
fi
echo "Installed. Run: source ~/.bashrc"