diff options
author | Marvin Borner | 2023-02-24 15:40:02 +0100 |
---|---|---|
committer | Marvin Borner | 2023-02-24 15:40:02 +0100 |
commit | 168358b774d64201ea560b9cdf3e1ff58a0d69c8 (patch) | |
tree | 9ce8cc0cd968f96f238453d4fa57be55304f878c | |
parent | 090df74e27418557bc4513e9bd0187587ac3c357 (diff) |
Fixed minor errors in broogle
-rwxr-xr-x | broogle.sh | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -13,11 +13,11 @@ pretty() { alia=$(sed -n "$line,$ p" "$file" | sed -n "s/^\\(.*\\) $name$/\\1/p" | xargs) [ -z "$type" ] && type="Any" - echo echo -e "\e[101m\e[30mFOUND\e[0m \e[95m$name\e[0m ⧗ \e[33m$type\e[0m" [ -z "$alia" ] || echo -e "\e[106m\e[30malso\e[0m \e[95m$alia\e[0m" echo -e "\e[104m\e[30min\e[0m $file:$line" [ -z "$desc" ] || echo -e "\e[3;2m$desc\e[0m" + echo done } @@ -38,11 +38,14 @@ case $1 in shift search_type "${@//->/→}" ;; --n) +-f) shift search_name "$@" ;; +-c) + echo "sorry, not supported right now" + ;; *) - echo "unknown command $1, please use -t/f/c]" + echo "unknown command $1, please use -t/f/c" ;; esac |