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 3b51912 commit 56ca7a8
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 56ca7a8

Please sign in to comment.