Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 690 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 690 Bytes

gethosts-foreman

Bash auto completion of ssh hosts from foreman

  1. Define GOPATH environment variable (if not already defined)
  2. $ go get github.com/tsliwowicz/gethosts-foreman
  3. $ cp $GOPATH/bin/gethosts-foreman /usr/local/bin (or some other directory in your search path)
  4. $ vi $GOPATH/src/github.com/tsliwowicz/gethosts-foreman/foreman-completion.sh-template (replace the placeholders and save)
  5. $ cp $GOPATH/src/github.com/tsliwowicz/gethosts-foreman/foreman-completion.sh-template /etc/profile.d/foreman-completion.sh
  6. $ source /etc/profile.d/foreman-completion.sh (required only if you want the automcomplete to be active in the existing session)