Environment Variables in Account Settings
owner/repository
pattern. You can use a wildcard on either of the parts, e.g. gitpod-io/*
would make that variable available in all repositories owned by gitpod-io
.
Conversely, */vscode
would make that variable available on all repositories called vscode
, which is especially useful for forks.
*/*
makes that variable available in all of your workspaces with that exact hierarchy depth. If you want to match all repositories, no matter the depth, use */**
.
Note: For GitLab, which allows to have nested group/repository structures like owner/some-group/sub-group/repo
, the number of segments in the pattern has to match the number of segments in the repository name. This constraint exists to avoid surprises and leaking of content into unexpected repositories. For matching arbitrary segments to the right, there is a dedicated pattern of **
.
Some example patterns (for GitLab) and results for the mentioned owner/some-group/sub-group/repo
repository:
*/**
: ✅*/*
: ❌owner/some-group/*/*
: ✅owner/some-group/*
: ❌owner/some-group/**
: ✅owner/**
: ✅owner/some-group/sub-group/repo
: ✅*/some-group/sub-group/repo
: ✅*/*
or */**
as a repository pattern.gp env
foo
to the value bar
use:
gp
can only interact with the persistent environment variables for this repository, not the environment variables of your terminal.
If you want to set that environment variable in your terminal, you can do so using -e
:
fish
shell:
fish
shell:
*/foo
, foo/*
or */*
. To remove them, you can use the account settings.