diff --git a/Makefile b/Makefile index a2e7f2c..d037cf0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PREFIX ?= /usr -# MANDIR ?= $(PREFIX)/share/man +MANDIR ?= $(PREFIX)/share/man DOCDIR ?= $(PREFIX)/share/doc/pash all: @@ -7,14 +7,14 @@ all: install: @mkdir -p $(DESTDIR)$(PREFIX)/bin - # @mkdir -p $(DESTDIR)$(MANDIR)/man1 + @mkdir -p $(DESTDIR)$(MANDIR)/man1 @mkdir -p $(DESTDIR)$(DOCDIR) @cp -p pash $(DESTDIR)$(PREFIX)/bin/pash - # @cp -p pash.1 $(DESTDIR)$(MANDIR)/man1 + @cp -p pash.1 $(DESTDIR)$(MANDIR)/man1 @cp -p README.md $(DESTDIR)$(DOCDIR) @chmod 755 $(DESTDIR)$(PREFIX)/bin/pash uninstall: @rm -rf $(DESTDIR)$(PREFIX)/bin/pash - # @rm -rf $(DESTDIR)$(MANDIR)/man1/pash.1 + @rm -rf $(DESTDIR)$(MANDIR)/man1/pash.1 @rm -rf $(DESTDIR)$(DOCDIR) diff --git a/pash.1 b/pash.1 new file mode 100644 index 0000000..0ba6157 --- /dev/null +++ b/pash.1 @@ -0,0 +1,64 @@ +.TH PASH 1 +.SH NAME +pash \- simple pasword manager + + +.SH SYNOPSIS +.B pash +[\fBadd|del|show|list\fR] +[name] +[\fB-ncqhv\fR] +[\fB-l\fR length] + + +.SH DESCRIPTION +.B pash +simple pasword manager + + +.SH COMMANDS +.TP +.BR [a]dd +[name]: +Create a new entry in the password store. +.TP + +.BR [d]el +[name]: +Delete an entry from the password store. +.TP + +.BR [s]how +[name]: +Show password from an entry in the password store. +.TP + +.BR [l]ist: +List all entries from the password store. +.TP + +.SH OPTIONS +.TP +.BR \-n +Limit passwords to alphanumeric characters. +.TP + +.BR \-l +Length of generated passwords. +.TP + +.BR \-c +Copy password to clipboard. +.TP + +.BR \-q +Don't print password to stdout. +.TP + +.BR \-h +Show usage and exit. +.TP + +.BR \-v +Show version and exit. +.TP