Skip to content

Commit

Permalink
fix grep bash_completion
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Apr 22, 2024
1 parent 65cd78c commit 7d7f82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apptui
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ double" | gum filter --height $height)
}

is_completion_enabled() {
if [ "$(grep -o "appman" < ~/.bash_completion | head -1)" == "appman" ]; then
if [ "$(grep -o "appman" ~/.bash_completion 2>/dev/null | head -1)" == "appman" ]; then
echo "AppMan"
fi
if test -f /etc/bash_completion.d/am-completion.sh; then
Expand Down

0 comments on commit 7d7f82f

Please sign in to comment.