Skip to content

Commit 832ad9b

Browse files
fix: symlink ~/.pickles when repo is cloned elsewhere
In devcontainers and other environments where the repo isn't cloned directly to ~/.pickles, tmux hooks and other scripts fail because they reference ~/.pickles/bin/. Create the symlink early in install.sh. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bbf9929 commit 832ad9b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ set -e
55
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
66
export DIR
77

8+
# Ensure ~/.pickles points to this repo, even if cloned elsewhere (e.g. devcontainers)
9+
if [[ "$DIR" != "$HOME/.pickles" ]] && [[ ! -e "$HOME/.pickles" ]]; then
10+
ln -s "$DIR" "$HOME/.pickles"
11+
echo "🔗 Symlinked ~/.pickles -> $DIR"
12+
fi
13+
814
if [[ -f .env ]]; then
915
source .env
1016
fi

0 commit comments

Comments
 (0)