Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

🐚 SSH shell completions, powered by Ansible 🐚

Notifications You must be signed in to change notification settings

alphagov/verify-ssh-shell-completions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Verify Shell Completions

This repository contains ssh shell completions based on Ansible's knowledge of available hostnames. It's used by the GOV.UK Verify team to ssh their way onto our servers.

Requirements

  • jq (brew install jq)
  • verify-ansible repository checked out, and you need to have run the hosts script in verify-ansible to generate a hosts cache file

SSH Shell Completions

Shell completion support is implemented for both bash and zsh.

Start by cloning this repo, then activate completions for your shell as follows.

Bash

Add the following to your ~/.bashrc, adjusting any paths as necessary.

export IDA_ANSIBLE_DIR="${HOME}/Projects/verify-ansible"
. ~/Projects/verify-ssh-shell-completions/ssh-complete.sh

ZSH

Add the following to your ~/.zshrc, adjusting paths as necessary.

export IDA_ANSIBLE_DIR="${HOME}/Projects/verify-ansible"
source ~/Projects/verify-ssh-shell-completions/ssh-complete.zsh

Usage

Completions should now get the full list of hosts from the ansible inventory.

To find out more about the dynamic inventory and how to refresh it see the verify-ansible/README.md

About

🐚 SSH shell completions, powered by Ansible 🐚

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages