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

View File

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