Skip to content

Commit

Permalink
fix: ❓WHY was this removed?
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Oct 24, 2024
1 parent 9e9782a commit ae4cc32
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions roles/zsh/files/zsh/bat_functions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
# Example: kubectl logs some-pod | btail
# Usage: btail [OPTION]... [FILE]...
# Usage: echo "Hello" | btail
# function btail() {
# if [ ! -t 0 ]; then
# cat /dev/stdin | bat --paging=never --language=log
# return
# fi
# if [ -z "$1" ]; then
# echo -e "${ARROW} ${YELLOW}Usage: btail [OPTION]... [FILE]...${NC}"
# return 1
# fi
# # tail -f $@ | bat -P -l log # This is the short version
# tail -f $@ | bat --paging=never --language=log
# }
function btail() {
if [ ! -t 0 ]; then
cat /dev/stdin | bat --paging=never --language=log
return
fi
if [ -z "$1" ]; then
echo -e "${ARROW} ${YELLOW}Usage: btail [OPTION]... [FILE]...${NC}"
return 1
fi
# tail -f $@ | bat -P -l log # This is the short version
tail -f $@ | bat --paging=never --language=log
}

0 comments on commit ae4cc32

Please sign in to comment.