-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What steps will reproduce the bug?
- alias cat to bat in ~/.zshrc
# use bat if bat is available
if command -v bat &>/dev/null; then
alias cat='bat --style="header-filename,header-filesize,grid" --paging="never"'
fi
- update bat version to bat 0.26.0
- source the ~/.zshrc
- from now of every empty prompt returns STDIN
What happens?
After update to bat 0.26.0 every prompt show up with a STDIN . I have been using the zsh configuration before and never faced any issue then
┗╸❯❯❯
┏╸~────────────────────────────────────────────────────────────────────────────────
STDIN <EMPTY>
Size: -
────────────────────────────────────────────────────────────────────────────────
┗╸❯❯❯ bat --version
bat 0.26.0
┏╸~────────────────────────────────────────────────────────────────────────────────
STDIN <EMPTY>
Size: -
────────────────────────────────────────────────────────────────────────────────
Here is my zsh prompt config if it helps
ZSH_GIT_PROMPT_FORCE_BLANK=1
ZSH_GIT_PROMPT_SHOW_UPSTREAM="no"
ZSH_THEME_GIT_PROMPT_PREFIX="%B · %b"
ZSH_THEME_GIT_PROMPT_SUFFIX="›"
ZSH_THEME_GIT_PROMPT_SEPARATOR=" ‹"
ZSH_THEME_GIT_PROMPT_BRANCH="⎇ %{$fg_bold[cyan]%}"
ZSH_THEME_GIT_PROMPT_UPSTREAM_SYMBOL="%{$fg_bold[yellow]%}⟳ "
ZSH_THEME_GIT_PROMPT_UPSTREAM_PREFIX="%{$fg[yellow]%} ⤳ "
ZSH_THEME_GIT_PROMPT_UPSTREAM_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DETACHED="%{$fg_no_bold[cyan]%}:"
ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_no_bold[cyan]%}↓"
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_no_bold[cyan]%}↑"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%}✖"
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%}●"
ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[red]%}✚"
ZSH_THEME_GIT_PROMPT_UNTRACKED="..."
ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}⚑"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✔"
PROMPT=$'┏╸%(?..%F{red}%?%f · )%B%~%b$(gitprompt)\n┗╸%F{red}❯%f%F{green}❯%f%F{blue}❯%f '
RPROMPT=''
What did you expect to happen instead?
I expect to not have
┏╸~────────────────────────────────────────────────────────────────────────────────
STDIN <EMPTY>
Size: -
────────────────────────────────────────────────────────────────────────────────
appended to every output
How did you install bat?
Homebrew
bat version and environment
bat --diagnostic
#### Software version
bat 0.26.0
#### Operating system
- OS: macOS 26.0.1
- Kernel: 25.0.0
#### Command-line
```bash
bat --style=header-filename,header-filesize,grid --paging=never --diagnostic
Environment variables
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
COLORTERM=truecolor
LANG=en_IN.UTF-8
LC_ALL=<not set>
LESS=<not set>
MANPAGER=<not set>
NO_COLOR=<not set>
PAGER=<not set>
SHELL=/bin/zsh
TERM=xterm-kitty
XDG_CACHE_HOME=<not set>
XDG_CONFIG_HOME=<not set>System Config file
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
Could not read contents of '/Users/lokesh.balla/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/Users/lokesh.balla/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/Users/lokesh.balla/.cache/bat' not found
Compile time information
- Profile: release
- Target triple: aarch64-apple-darwin
- Family: unix
- OS: macos
- Architecture: aarch64
- Pointer width: 64
- Endian: little
- CPU features: aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh
- Host: aarch64-apple-darwin
Less version
> less --version
less 668 (POSIX regular expressions)
Copyright (C) 1984-2024 Mark Nudelman
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working