Something went wrong. Try again.
Terminal markdown pager with syntax highlighting
Something went wrong. Try again.
preview-markdown shell.nix
335 B · 18 lines
Nix
at main
12345678910111213141516171819# For users without flakes, this provides a basic shell.# Git hooks are managed by lefthook.{ pkgs ? import <nixpkgs> { },}:
pkgs.mkShell { buildInputs = with pkgs; [ bun lefthook ];
shellHook = '' if [ -d .git ] && command -v lefthook >/dev/null 2>&1; then lefthook install -f >/dev/null fi '';}