Skip to content

Commit

Permalink
make rofi command a function to eliminate problems with quotes option…
Browse files Browse the repository at this point in the history
…s. Should fix #33 once and for all
  • Loading branch information
carnager committed Mar 30, 2016
1 parent 11790ca commit 75cf715
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions config.example
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 3 additions & 3 deletions rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 75cf715

Please sign in to comment.