aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-05-22 22:15:14 +0200
committerRasmus Steinke <rasi@xssn.at>2015-05-22 22:15:14 +0200
commitf4255a9578168e2f94180e65c616ab25ef1385b4 (patch)
tree806746f81475f7b43b5ba73755a0d5225109e519
parent788a78df46a6afbe270b2faf23a742e4f9356c9c (diff)
downloadrofi-pass-f4255a9578168e2f94180e65c616ab25ef1385b4.tar.gz
Add config files and Makefile
-rw-r--r--Makefile9
-rw-r--r--config.example5
-rwxr-xr-xrofi-pass2
3 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3176b03
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+ifndef PREFIX
+ PREFIX=/usr/local
+endif
+
+install:
+ install -Dm755 rofi-pass $(DESTDIR)$(PREFIX)/bin/rofi-pass
+ install -Dm644 config.example $(DESTDIR)$(PREFIX)/share/doc/rofi-pass/config.example
+ install -Dm644 README.md $(DESTDIR)$(PREFIX)/share/doc/rofi-pass/README.md
+ install -Dm644 config.example $(DESTDIR)/etc/rofi-pass.conf
diff --git a/config.example b/config.example
new file mode 100644
index 0000000..20d95e8
--- /dev/null
+++ b/config.example
@@ -0,0 +1,5 @@
+basedir=~/.password-store/
+URL_field='URL'
+USERNAME_field='UserName'
+EDITOR='gvim -f'
+
diff --git a/rofi-pass b/rofi-pass
index 8d8cbaa..077e7b1 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -5,6 +5,8 @@
# (c) 2015 Thore Bödecker <me@foxxx0.de>
shopt -s nullglob globstar
+source /etc/rofi-pass.conf
+source $HOME/.config/rofi-pass/config
basedir=~/.password-store/
URL_field='URL'