Skip to content

Status line for Hyper showing the locally configured GCP project, GCE zone, Kubernetes context, as well as the current Google Cloud availability.

Notifications You must be signed in to change notification settings

marcjoha/hyper-gcp-status-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyper-gcp-status-line npm npm

A status line plugin for Hyper that shows the currently configured Google Cloud Platform project, the Compute Engine default zone, and the Kubernetes context and namespace. It will also show the current general GCP status information as fetched from https://status.cloud.google.com/.

hyper-gcp-statusline

Should work with most themes, and allow custom paths to gcloud and kubectl which are used to retrieve information.

Credits go out to Henrik Dahl and his work on hyper-statusline. Check it out if you want a status line that shows Git information.

Installation

Add the following to your ~/.hyper.js config:

module.exports = {
  ...
  plugins: ['hyper-gcp-status-line']
  ...
}

Configuration

Optionally configure the below settings in ~/.hyper.js.

Path to gcloud and kubectl

Unless specified, hyper-gcp-status-line assumes binaries are installed on the global PATH.

module.exports = {
  config: {
    ...
    hyperGcpStatusLine: {
      gcloudBinary: '/my/path/gcloud',
      kubectlBinary: '/my/path/kubectl'
    }
    ...
  }
}

Time between GCP status checks

Unless specified, hyper-gcp-status-line will retrieve GCP status information from https://status.cloud.google.com/ every 10 minutes (600000 ms). Decrease at your own risk.

module.exports = {
  config: {
    ...
    hyperGcpStatusLine: {
      timeBetweenGcpStatusChecks: 600000
    }
    ...
  }
}

Enable WSL compatability

Unless specified, hyper-gcp-status-line will not enable WSL compatability. The command wsl is used by default, it can be changed using the wslBinary config option.

module.exports = {
  config: {
    ...
    hyperGcpStatusLine: {
      enableWSL: true
      wslBinary: 'wsl.exe'
    }
    ...
  }
}

About

Status line for Hyper showing the locally configured GCP project, GCE zone, Kubernetes context, as well as the current Google Cloud availability.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published