Skip to content

Commit fb0e52d

Browse files
arthurnnCopilot
andcommitted
Add copilot config, git-lfs setup, and per-file copilot symlinking
- Add copilot/config.yaml for Copilot CLI model preference - Add git-lfs filter config to gitconfig - Update setup script to symlink copilot files individually, preserving runtime data in ~/.copilot/ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ee92a30 commit fb0e52d

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

copilot/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
model: claude-opus-4.5

gitconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@
4646
[credential "https://gist.github.com"]
4747
helper =
4848
helper = !/usr/bin/gh auth git-credential
49+
[filter "lfs"]
50+
clean = git-lfs clean -- %f
51+
smudge = git-lfs smudge -- %f
52+
process = git-lfs filter-process
53+
required = true

script/setup

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ for DOTFILE in *; do
3939
fi
4040

4141
# Don't try to install documentation/script files
42-
echo $DOTFILE | egrep -q '(^script/$|\.txt$|\.md$|Dockerfile$)' && continue
42+
# Skip copilot/ - handled separately to preserve runtime data
43+
echo $DOTFILE | egrep -q '(^script/$|^copilot/$|\.txt$|\.md$|Dockerfile$)' && continue
4344

4445
# Fixup VSCode settings path
4546
echo $DOTFILE | grep -q 'vscode-settings' &&
@@ -82,3 +83,13 @@ done
8283
# then
8384
# ln -sf "$DOTFILESDIR" "$HOMEDOTFILES"
8485
# fi
86+
87+
# Symlink Copilot config files individually (not the whole folder)
88+
if [ $UNIX ]
89+
then
90+
mkdir -p "$HOME/.copilot"
91+
for COPILOTFILE in "$DOTFILESDIR/copilot/"*; do
92+
BASENAME=$(basename "$COPILOTFILE")
93+
ln -sfv "$COPILOTFILE" "$HOME/.copilot/$BASENAME"
94+
done
95+
fi

0 commit comments

Comments
 (0)