File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- version_number=" 4.10.5 "
3+ version_number=" 4.10.6 "
44
55# UI
66
77external_menu () {
88 [ " $use_external_menu " = " 1" ] && rofi " $1 " -sort -dmenu -i -width 1500 -p " $2 " " $3 "
9- [ " $use_external_menu " = " 2" ] && dmenu -l 20 -p " $1 "
9+ [ " $use_external_menu " = " 2" ] && dmenu -l 20 -p " $2 "
1010}
1111
1212launcher () {
1313 [ " $use_external_menu " = " 0" ] && [ -z " $1 " ] && set -- " +m" " $2 "
1414 [ " $use_external_menu " = " 0" ] && fzf " $1 " --reverse --cycle --prompt " $2 "
1515 [ " $use_external_menu " = " 1" ] && external_menu " $1 " " $2 " " $external_menu_args "
16- [ " $use_external_menu " = " 2" ] && external_menu " $1 "
16+ [ " $use_external_menu " = " 2" ] && external_menu " $1 " " $2 "
1717}
1818
1919nth () {
@@ -406,8 +406,8 @@ external_menu_normal_window="${ANI_CLI_EXTERNAL_MENU_NORMAL_WINDOW:-0}"
406406skip_intro=" ${ANI_CLI_SKIP_INTRO:- 0} "
407407# shellcheck disable=SC2154
408408skip_title=" $ANI_CLI_SKIP_TITLE "
409- [ -t 0 ] || command -v dmenu && use_external_menu=2
410- [ -t 0 ] || command -v rofi && use_external_menu=1
409+ [ -t 0 ] || ( command -v dmenu && use_external_menu=2)
410+ [ -t 0 ] || ( command -v rofi && use_external_menu=1)
411411hist_dir=" ${ANI_CLI_HIST_DIR:- ${XDG_STATE_HOME:- $HOME / .local/ state} / ani-cli} "
412412[ ! -d " $hist_dir " ] && mkdir -p " $hist_dir "
413413histfile=" $hist_dir /ani-hsts"
You can’t perform that action at this time.
0 commit comments