Skip to content

Shell integration

Mimic can set an AWS_PROFILE default that persists across terminal sessions.

-->

How it works

When you click Set as default on a profile, Mimic writes:

bash
export AWS_PROFILE=<profile-name>

to ~/.config/mimic/active_profile.sh.

Sourcing in your shell

Add this to ~/.zshrc (macOS) or ~/.bashrc (Linux):

bash
[ -f ~/.config/mimic/active_profile.sh ] && source ~/.config/mimic/active_profile.sh

Now every new terminal has AWS_PROFILE set automatically.

Override

Override for a single session:

bash
export AWS_PROFILE=other-profile

Unset

Expand the default profile and click **Unset as default`. The file is emptied.

Toggle

Disable the feature entirely in Settings → Behavior → Default profile integration.