Skip to content

Standardize PowerShell Script Location to ~/.copilot_here.ps1 #46

@GordonBeeming

Description

@GordonBeeming

Summary

The PowerShell script installation has inconsistent paths between manual install instructions and the actual --install-shells command, causing the auto-reload feature to fail.

Problem

Two different paths in use:

  • Manual install (README): ~/Documents/PowerShell/copilot_here.ps1
  • --install-shells command: ~/.copilot_here.ps1
  • Reload logic checks: ~/.copilot_here.ps1

Result: When following manual install instructions from the README, the auto-reload feature doesn't work because:

  1. User downloads script to ~/Documents/PowerShell/copilot_here.ps1
  2. User sources the profile which loads the script
  3. Script's reload logic checks ~/.copilot_here.ps1 (different file!)
  4. Even after downloading new version, old functions stay in memory

Expected Behavior

  • Single canonical location: ~/.copilot_here.ps1
  • Consistent across all installation methods
  • Auto-reload works after downloading new version
  • Matches bash/zsh pattern (~/.copilot_here.sh)

Acceptance Criteria

  • Update README manual install to use ~/.copilot_here.ps1
  • Verify --install-shells uses ~/.copilot_here.ps1 (already does)
  • Verify reload logic checks ~/.copilot_here.ps1 (already does)
  • Update version to 2025.12.29.11
  • Update website installation instructions
  • Update blog posts with corrected install instructions

Files to Update

Repository (Done)

  • README.md - Manual install section

Website (mount: ../copilot_here-site/)

  • Search for "Documents\PowerShell\copilot_here.ps1" and replace with ".copilot_here.ps1"
  • Update any installation documentation/guides
  • Check code examples in docs

Blog (mount: ../xylem/data/blog/)

  • Search blog posts for "Documents\PowerShell\copilot_here.ps1"
  • Update any copilot_here installation guides/tutorials
  • Republish affected blog posts

Search Commands

# Website
cd ../copilot_here-site
grep -r "Documents.*PowerShell.*copilot" .

# Blog
cd ../xylem/data/blog
grep -r "Documents.*PowerShell.*copilot" .

Benefits

  • Single source of truth
  • Reload feature works consistently
  • Simpler for users (root directory, not nested in Documents)
  • Consistent with Unix approach

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions