_______ _______ ______ __ __
| || || _ | | |_| |
| ___|| ___|| | || | |
| | __ | |___ | |_||_ | |
| || || ___|| __ || |
| |_| || |___ | | | || ||_|| |
|_______||_______||___| |_||_| |_|
Create iterm2 dynamic profiles.
go get github.com/mhristof/germ
This script extracts profiles for:
- AWS from
~/.aws/config
- Kubernetes from
~/.kube/config
. If there are multiple clusters in the config, it splits out into different files and each profile utilises the extracted config. If you modify~/.kube/config
, you need to re-run this script.
You need to 'login' after you have opened your custom profile with Opt + a.
You can do that via the new
command, for example
germ add --name manos --export
Enter secret:%
The export flag will create the secret value to be export MANOS=%s
where %s
is the value you typed.
If you want more complicated commands, you can ommit the --export
flag and type the full text of your secret, for example
export FOO=bar BAR=baz
Make sure you have generated germ generate
and written --write
your profile and give iterm2
a couple of seconds to detect the changes and use the new profile definitions.
The user can define her own Smart selection rules in a file called ~/.germ.ssr.json
. For example
cat ~/.germ.ssr.json
[
{
"notes" : "jira ticket link",
"precision" : "very_high",
"regex" : "JENKINS-\\d*",
"actions" : [
{
"title" : "Open Jenkins jira link",
"action" : 1,
"parameter" : "https://issues.jenkins-ci.org/browse/\\0"
}
]
},
]