aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarvin Borner2023-02-24 15:40:02 +0100
committerMarvin Borner2023-02-24 15:40:02 +0100
commit168358b774d64201ea560b9cdf3e1ff58a0d69c8 (patch)
tree9ce8cc0cd968f96f238453d4fa57be55304f878c
parent090df74e27418557bc4513e9bd0187587ac3c357 (diff)
Fixed minor errors in broogle
-rwxr-xr-xbroogle.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/broogle.sh b/broogle.sh
index 3742731..bc22f9e 100755
--- a/broogle.sh
+++ b/broogle.sh
@@ -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