make rofi command a function to eliminate problems with quotes options. Should fix #33 once and for all

This commit is contained in:
Rasmus Steinke 2016-03-30 17:59:02 +02:00
parent 11790ca6c6
commit 75cf715158
2 changed files with 8 additions and 8 deletions

View File

@ -1,11 +1,11 @@
# permanently set alternative root dir
# root=/path/to/root
# optional rofi parameters:
# keep in mind that 0.15.7 has different arguments compared to
# latest git. for rofi-pass this means that "-i" will not work with
# 0.15.7.
rofiopts="-i -width 700 -no-levenshtein-sort"
# rofi command. Make sure to have "$@" as last argument
_rofi () {
rofi -z -i -width 700 -no-levenshtein-sort "$@"
}
# fields to be used
URL_field='url'

View File

@ -462,9 +462,9 @@ password_gen () {
fi
}
function _rofi () {
rofi -dmenu -z "${rofiopts}" "$@"
}
#function _rofi () {
# rofi -dmenu -z ${rofiopts} "$@"
#}
help_msg () {
echo "rofi-pass (Version: 1.2)"