skim
skim copied to clipboard
Bugged output on Nixos
Hi, team,
I'm trying to run skim on nixos. But I got bugged output like this.
I think something is busted, but I'm not sure if it's due to my setup. But I can run fzf without any problem.
I'm on nixos 21.11, and zsh.
Would you please help me here? Thanks!
same behavior when trying to run in termux
Suddenly started getting this yesterday in MacOS 12.6. Seems to be putting everything on one line. Seeing it in both Terminal.app and Alacritty, including with /bin/bash --norc --noprofile
, and after quitting / restarting the apps. FZF still working.
I'll look into enabling debug output if there's an option for that.
Installed via Homebrew, I don't see any changes to that package in a while, so not sure what happened.
$ for n in {1..10}; do echo "$n"; done | sk
0/10 0/0.> 10/10 10 9 8 7 6 5 4 3 2> 1
$ for n in {1..10}; do echo "$n"; done | fzf
> 10
9
8
7
6
5
4
3
2
1
10/10
>
EDIT: No change after updating Xcode tools and a reboot.
For me on MacOS, it looks like https://github.com/lotabout/skim/issues/412 is related, as unset TERMINFO_DIRS
fixes this issue.
Around the time this started I was messing with nix-darwin and home-manager, and I see that my TERMINFO_DIRS
contains ~/.nix-profile/share/terminfo
, so may be what caused my issue (and less likely but possibly related https://github.com/Homebrew/brew/issues/13248), though I still haven't found what is modifying that envvar or where.
Following instructions at https://gpanders.com/blog/the-definitive-guide-to-using-tmux-256color-on-macos/ I regenerated a terminfo
and added it to that envvar, which fixes the skim rendering issue in Terminal.app
(but not alacritty)