New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vaultp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vaultp

Switch Vault profile

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

vaultp - VAULT Profile Switcher

Switch Vault profile easily

Preparation

Setup your profile in ~/.vault/config (create folder if not exists)

config example:

{
  "default": {
    "address": "https://vault.example.com",
    "token": "toke1"
  },
  "profile2": {
    "address": "https://vault2.example.com",
    "token": "toekn2"
  }
}

Setup

npm install -g vaultp

Add the following to your .bashrc or .zshrc config

alias vaultp="source _vaultp"

Usage

vaultp

or

vaultp default

Shell prompt

function vault_prompt {
  local profile="${VAULT_PROFILE:=default}"

  echo "%{$fg_bold[blue]%}vault:(%{$fg[yellow]%}${profile}%{$fg_bold[blue]%})%{$reset_color%} "
}
PROMPT='OTHER_PROMPT_STUFF $(vault_prompt)'

Authors

Created by rick lin with inspiration from awsp

Keywords

vault

FAQs

Package last updated on 31 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts