Personal environments

Your own shell, even on a shared account.

When a team signs in to a server as one account, each person still gets their own history, prompt, aliases, editor settings and git author, taken from their sign-in. Nothing is installed on the server.

Shared account today

One shell history for everyone, mixed together

With GSR Access Gateway

A history of your own, kept across sessions

Shared account today

Commits on the server signed by deploy

With GSR Access Gateway

Git author and committer from your sign-in

Shared account today

Edits to ~/.bashrc and ~/.vimrc that change everyone's setup

With GSR Access Gateway

Your aliases, variables and editor settings apply only to your sessions

Shared account today

Every prompt looks the same

With GSR Access Gateway

A prompt that shows who you are, e.g. jordan@deploy@prod-db-01

Why teams switch it on

  • Your history stays yours.

    Each person's commands go to their own history file on the account. Multiline commands stay together as one entry.

  • Commits by the right person.

    The git author and committer come from the person's sign-in.

  • No fights over dotfiles.

    Aliases, variables, editor settings and a working directory live in each person's own layer. The account's own startup files still run first.

  • Nothing to install.

    GSR AGW writes the setup over the session's own SSH connection when the session starts.

  • A baseline from your team.

    Administrators set an organisation layer and a layer per SSO group.

  • Never in the way.

    If the environment can't be set up, the person gets the account's normal shell and a notice.

How it works

Your own shell, even on a shared account.

  • Administrator: in Settings → Hosts, edit an SSH host and switch on Personal environment: base directory, shells people may use (bash, zsh), and whether user startup scripts are allowed.
  • Administrator (optional): in Settings → Shell profiles, set the organisation layer and a layer per SSO group.
  • You: open My environment, pick a layer (Everywhere, a tag such as prod, or one host), and add an rc snippet, environment variables, a working directory, a shell or a startup script.
  • You: check Preview, which shows the merged result and the exact files GSR AGW writes. Save; your next session uses it, and the terminal shows My env.

Your prompt, your history, and production marked in red.

Example: your own .vimrc

Paste into the rc snippet of your Everywhere layer:

cat > "$AGW_HOME/vimrc" <<'EOF'
set number relativenumber
syntax on
set expandtab shiftwidth=4 tabstop=4
set hlsearch incsearch ignorecase smartcase
EOF
export VIMINIT="source $AGW_HOME/vimrc"
export MYVIMRC="$AGW_HOME/vimrc"

AGW_HOME is your own directory on the account, created by GSR AGW before your snippet runs. When VIMINIT is set, Vim uses it instead of ~/.vimrc, so only your sessions load your settings. It's an rc snippet, not a startup script, so it works even where startup scripts are off.

What happens when you connect

  1. 01

    You sign in: GSR AGW knows who you are, including your SSO groups.

  2. 02

    Layers are merged: organisation → SSO group → Everywhere → tag → host. Variables, working directory and shell: the later layer wins; rc snippets and startup scripts all run, in order.

  3. 03

    Files are written over the session's own SSH connection with SFTP, into your own directory under the base directory (default ~/.agw), named after a hash of your username, readable only by the account (0700), replaced atomically.

  4. 04

    Your shell starts: bash with your rc file, or zsh through its own start-up directory. The account's normal start-up files run first, then your layers, prompt, history file and git identity.

  5. 05

    It's on the record: the connection log lists the layers applied, and the session keeps the shell, the layers and a fingerprint of the files written.

Without SFTP, bash gets its setup inside the session's start command. If anything fails, you get the normal shell and a notice. Organisation and group layers are versioned, and every change is in the audit log.

Variables set in every personal environment

VariableHolds
AGW_USERYour gateway username
AGW_SESSIONThe session ID, matching the recording
AGW_HOMEYour own directory on the account
GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_NAME, GIT_COMMITTER_EMAILYour name and email from your sign-in

Questions

Prove it on your own systems.

A proof of concept runs inside your environment, on the systems you choose, with success criteria agreed up front.

Book a POC
  1. 01Scope call
  2. 02Deploy & connect your systems
  3. 03Review the results together