Skip to content

Commit

Permalink
Add help command for --help with colors
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Nov 8, 2024
1 parent aa214d5 commit c84de64
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions usr/share/biglinux/bash-config/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ if [[ -f /usr/share/blesh/ble.sh ]] && [[ ! -f ~/.bash-normal ]] && [[ $TERM !=
bat --paging=never --style=plain "$@"
fi
}
# Use help command for get command --help with colors
help() {
if [ $# -eq 0 ]; then
command help
else
"$@" --help 2>&1 | bat --paging=never --style=plain --language=help
fi
}
fi

fi
Expand Down

0 comments on commit c84de64

Please sign in to comment.