Giter Site home page Giter Site logo

germ's Introduction

 _______  _______  ______    __   __
|       ||       ||    _ |  |  |_|  |
|    ___||    ___||   | ||  |       |
|   | __ |   |___ |   |_||_ |       |
|   ||  ||    ___||    __  ||       |
|   |_| ||   |___ |   |  | || ||_|| |
|_______||_______||___|  |_||_|   |_|

Create iterm2 dynamic profiles.

Installation

go get github.com/mhristof/germ

Coverage

This script extracts profiles for:

  1. AWS from ~/.aws/config
  2. 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.

F.A.Q.

My custom secret env var is not set.

You need to 'login' after you have opened your custom profile with Opt + a.

How can i store a simple secret in the keychain and use it ?

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

My profile doesnt show in the list.

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.

Custom rules

SmartSelectionRules

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"
        }
      ]
    },
]

germ's People

Contributors

mhristof avatar dependabot[bot] avatar dependabot-preview[bot] avatar

Watchers

James Cloos avatar

germ's Issues

Dependabot can't resolve your Go dependency files

Dependabot can't resolve your Go dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

github.com/mhristof/germ/cmd: cannot find module providing package github.com/mhristof/germ/cmd

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

fix build for linux

i've disabled linux build as the keychain stuff are failing.

Will need to mock it you and use golang build flags to make it work

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.