Skip to content

Conversation

Copy link

Copilot AI commented Feb 3, 2026

Dev shell utilities required relative paths and could only be invoked from the dotfiles root directory. Users working in project directories needed a way to run set-dev-shell --latest elixir without path gymnastics.

Changes

Shell Functions (modules/zsh/functions.sh)

  • Added set-dev-shell and check-shell-versions as globally available functions
  • Resolves dotfiles path via ${DOTFILES_PATH:-$HOME/Repos/dot-files} for portability
  • Error messages guide users to set DOTFILES_PATH if custom location needed

Documentation

  • Updated examples to use global functions instead of relative script paths
  • Documented DOTFILES_PATH environment variable override

Testing

  • Test suite validates functions work from arbitrary directories
  • Uses mktemp -d for safe concurrent execution

Usage

# From any project directory
cd ~/my-elixir-project
set-dev-shell --latest elixir
direnv allow

# Custom dotfiles location
export DOTFILES_PATH=/custom/path
set-dev-shell --list

Direct script invocation (~/Repos/dot-files/utilities/set_dev_shell.sh) remains available for CI/automation contexts.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 3, 2026 12:43
Co-authored-by: gilacost <6720169+gilacost@users.noreply.github.com>
Co-authored-by: gilacost <6720169+gilacost@users.noreply.github.com>
Co-authored-by: gilacost <6720169+gilacost@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub action for weekly dependency updates and Nix build feat: automated weekly dependency updates and dev shell management Feb 3, 2026
Copilot AI requested a review from gilacost February 3, 2026 12:48
Copilot AI and others added 2 commits February 3, 2026 13:11
Co-authored-by: gilacost <6720169+gilacost@users.noreply.github.com>
Co-authored-by: gilacost <6720169+gilacost@users.noreply.github.com>
Copilot AI changed the title feat: automated weekly dependency updates and dev shell management Add global shell functions for dev shell utilities Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants