This commit is contained in:
Denis Isidoro 2019-09-27 14:52:21 -03:00 committed by Denis Isidoro
parent 260966ba6c
commit 0eeb3218b0
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ arg::pick() {
local -r prefix="$ ${arg}:"
local -r length="$(echo "$prefix" | str::length)"
local -r arg_dict="$(grep "$prefix" "$cheat" | str::sub $((length + 1)) | arg::dict)"
local -r arg_dict="$(echo "$cheat" | grep "$prefix" | str::sub $((length + 1)) | arg::dict)"
local -r fn="$(dict::get "$arg_dict" fn | sed 's/\\f/\\n/g')"
local -r args_str="$(dict::get "$arg_dict" opts)"

View file

@ -91,8 +91,8 @@ handler::home() {
handler::widget() {
local widget
case "$SH" in
case "$SH" in
zsh) widget="${SCRIPT_DIR}/shell/widget.zsh" ;;
*) echoerr "Invalid shell: $SH"; exit 1 ;;
esac