diff options
author | Rasmus Steinke <rasi@xssn.at> | 2016-03-30 17:59:02 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2016-03-30 17:59:02 +0200 |
commit | 75cf7151588927122d696dc1daa95fee1ba43644 (patch) | |
tree | e7f8bfb1b4a35c432dc240d6a5cdbb13efc8ae9c | |
parent | 11790ca6c6bcb3e892c6f66f4543df1ebbb07b72 (diff) | |
download | rofi-pass-75cf7151588927122d696dc1daa95fee1ba43644.tar.gz |
make rofi command a function to eliminate problems with quotes options. Should fix #33 once and for all
-rw-r--r-- | config.example | 10 | ||||
-rwxr-xr-x | rofi-pass | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/config.example b/config.example index 1cd5102..31a6c1d 100644 --- a/config.example +++ b/config.example @@ -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' @@ -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)" |