mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
Only search or code snippet if there is a language argument
This commit is contained in:
@@ -86,7 +86,8 @@ oeis() (
|
||||
| tr -d '()' \
|
||||
| sort -u >> $TMP/list
|
||||
[ $(wc -c < $TMP/list) -ne 0 ] && cat ${TMP}/list || printf "No code snippets available.\n"
|
||||
else
|
||||
elif [ $# -gt 1 ]
|
||||
then
|
||||
if [[ ${LANGUAGE^^} == 'MAPLE' ]] && grep -q 'MAPLE' $DOC
|
||||
then
|
||||
GREP_REGEX='MAPLE.*CROSSREFS'
|
||||
|
||||
Reference in New Issue
Block a user