Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This repository contains personal dotfiles and configuration files for shell env
- `bootstrap.sh` - Main installation and setup script
- `.gitconfig` - Git configuration
- `.config/` - Application-specific configuration directory
- `.copilot/` - GitHub Copilot skills and custom instructions
- `.gitignore` - Git ignore patterns
- `ext_list.txt` - List of extensions
- `fix_ext.sh` - Extension fixing script
Expand Down
17 changes: 1 addition & 16 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,7 @@ if [[ ! -d "$HOME/.dotfiles/" ]]; then
dotfiles config --local status.showUntrackedFiles no
fi

# Create symbolic links for every file in the dotfiles repository
for file in $(ls -A "$HOME/.dotfiles"); do
if [[ "$file" == ".git" || "$file" == ".gitignore" || "$file" == ".gitmodules" ]]; then
continue
fi
# Security: Validate filename to prevent path traversal
if [[ "$file" =~ \.\./|\.\. || "$file" =~ ^/ ]]; then
log "WARNING: Skipping potentially unsafe file: $file"
continue
fi
ln -sf "$HOME/.dotfiles/$file" "$HOME/$file"
done
# Explicitly symlink key dotfile directories to ensure they are properly linked
ln -sf "$HOME/.dotfiles/.shellrc" "$HOME/.shellrc"
ln -sf "$HOME/.dotfiles/.copilot" "$HOME/.copilot"
cd $HOME/
cd "$HOME"/

if [[ -n "$CODESPACES" ]]; then
log "Running in Codespaces..."
Expand Down