Browse Source

bash, aliases: fix command_not_found_handle()

Maxim Likhachev 5 years ago
parent
commit
8e78c9da1a
  1. 4
      etc/shell/bash/aliases

4
etc/shell/bash/aliases

@ -152,10 +152,10 @@ command_not_found_handle() { #noindex @@ -152,10 +152,10 @@ command_not_found_handle() { #noindex
if grep -q '[фывапролджэйцукенгшщзхъячсмитьбю]' 2>&1 > /dev/null <<<"$1"; then
ex="$(echo -n "$@" | \
sed "y/йцукенгшщзхъфывапролджэячсмитьбю\.ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ,/qwertyuiop\[\]asdfghjkl;\'zxcvbnm,\.\/QWERTYUIOP\{\}ASDFGHJKL:\"ZXCVBNM<>\?/")"
echo "${red}[$@] -> ${green}[${ex}]${rstc}"
echo -e "${red}[$@] -> ${green}[${ex}]${rstc}"
bash --rcfile ~/.bashrc -c "$ex"
else
echo >&2 "${red}Команда ${green}${1}${red} не найдена.$rstc"
echo >&2 -e "${red}Команда ${green}${1}${red} не найдена.$rstc"
fi
fi
}

Loading…
Cancel
Save