Skip to content

Persist awsctx context across shells#74

Open
lox wants to merge 1 commit intomainfrom
awsctx-persist-context
Open

Persist awsctx context across shells#74
lox wants to merge 1 commit intomainfrom
awsctx-persist-context

Conversation

@lox
Copy link
Owner

@lox lox commented Mar 13, 2026

Summary

  • persist the selected AWS profile/region to an XDG state file
  • restore persisted context automatically when zsh/aws.zsh is sourced
  • clear persisted context when awsctx --clear is used
  • have awssh attempt restore before starting SSM sessions

Verification

  • zsh -n zsh/aws.zsh
  • manual smoke test for save/restore/clear with temporary XDG_STATE_HOME

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.

1 participant