added really simple manpage to start

This commit is contained in:
James Tomasino 2019-04-18 16:08:57 -04:00
parent 6fb9af5732
commit c55f3cab10
2 changed files with 29 additions and 0 deletions

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man/man1
install:
@echo Installing the executable to $(BINDIR)
@mkdir -p $(BINDIR)
@install -m 755 lssh $(BINDIR)
@echo Installing the manual page to $(MANDIR)/man1
@mkdir -p $(MANDIR)
@install -m 644 lssh.1 $(MANDIR)
endif
uninstall:
@echo Removing the executable from $(BINDIR)
@rm -f $(BINDIR)/lssh
@echo Removing the manual page from $(MANDIR)/man1
@rm -f $(BINDIR)/man1/lssh.1
endif
.PHONY: install uninstall

8
lssh.1 Normal file
View File

@ -0,0 +1,8 @@
.TH LSSH 1 "18 Apr 2019" "version 2019.04.18"
.SH NAME
lssh \- a wrapper for Lastpass CLI and ssh-agent
.SH SYNOPSIS
lssh [options] [ssh-key]
.SH DESRIPTION
lssh quickly activates ssh-keys by name, filling passwords via Lastpass CLI, and
adding them to ssh-agent. Keys are activated for 1-hour at a time.