-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.envrc
More file actions
31 lines (25 loc) · 955 Bytes
/
Copy path.envrc
File metadata and controls
31 lines (25 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# shellcheck shell=bash
# Project environment (loaded by direnv)
PROJECT_NAME="ai-cli-utils"
# Suppress variable-name listing; show vague confirmation instead
export DIRENV_LOG_FORMAT=""
>&2 echo "direnv: ${PROJECT_NAME} environment loaded"
# Load secrets from environment (configure in your shell profile or secret manager)
# Claude Code dev aliases — yolo mode
PATH_add "$(direnv_layout_dir)/bin"
mkdir -p "$(direnv_layout_dir)/bin"
cat > "$(direnv_layout_dir)/bin/cc_yolo" <<'SCRIPT'
#!/usr/bin/env bash
exec claude --dangerously-skip-permissions "$@"
SCRIPT
chmod +x "$(direnv_layout_dir)/bin/cc_yolo"
cat > "$(direnv_layout_dir)/bin/cc_yolo_tmux" <<'SCRIPT'
#!/usr/bin/env bash
prefix="claude-ai-cli-"
next=1
while tmux has-session -t "${prefix}${next}" 2>/dev/null; do
next=$((next + 1))
done
exec tmux new-session -s "${prefix}${next}" -- claude --dangerously-skip-permissions "$@"
SCRIPT
chmod +x "$(direnv_layout_dir)/bin/cc_yolo_tmux"