aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdotfiles/.local/bin/menuman8
1 files changed, 4 insertions, 4 deletions
diff --git a/dotfiles/.local/bin/menuman b/dotfiles/.local/bin/menuman
index 30a5424..98efc02 100755
--- a/dotfiles/.local/bin/menuman
+++ b/dotfiles/.local/bin/menuman
@@ -11,9 +11,9 @@ issearch=
isterminal=
printusage() {
- echo "Options:" >2
- echo " -t use in terminal with fzf otherwise launch bemenu." >2
- echo " -s search with apropos." >2
+ echo "Options:" >&2
+ echo " -t use in terminal with fzf otherwise launch bemenu." >&2
+ echo " -s search with apropos." >&2
}
while getopts "st" curopt "$@"; do
@@ -38,7 +38,7 @@ if [ ! -z "$issearch" ]; then
query="$(echo "" | bemenu -p "Enter apropos query:" -i --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")"
fi
if [ -z "$query" ]; then
- echo "Empty query" >2
+ echo "Empty query" >&2
exit 1
fi
list="$(apropos "$query")"